Skip to content

Commit

Permalink
append --omit=dev to npm i commands
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Feb 8, 2025
1 parent 9a0537b commit ed1c43c
Show file tree
Hide file tree
Showing 15 changed files with 1,000 additions and 866 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/alpha-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x

- name: Install package v${{ needs.publish.outputs.NPM_VERSION }}
run: |
export npm_config_prefix=$(pwd)/package
for i in {1..10}; do
npm install -g homebridge-config-ui-x@${{ needs.publish.outputs.NPM_VERSION }} && break || {
if [ $? -eq 1 ] && grep -q 'ETARGET' <<< "$(npm install -g homebridge-config-ui-x@${{ needs.publish.outputs.NPM_VERSION }} 2>&1)"; then
npm install -g --omit=dev homebridge-config-ui-x@${{ needs.publish.outputs.NPM_VERSION }} && break || {
if [ $? -eq 1 ] && grep -q 'ETARGET' <<< "$(npm install -g --omit=dev homebridge-config-ui-x@${{ needs.publish.outputs.NPM_VERSION }} 2>&1)"; then
echo "Attempt $i failed with ETARGET error. Retrying in 1 minute..."
sleep 60
else
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x

- name: Install package v${{ needs.publish.outputs.NPM_VERSION }}
run: |
export npm_config_prefix=$(pwd)/package
for i in {1..10}; do
npm install -g homebridge-config-ui-x@${{ needs.publish.outputs.NPM_VERSION }} && break || {
if [ $? -eq 1 ] && grep -q 'ETARGET' <<< "$(npm install -g homebridge-config-ui-x@${{ needs.publish.outputs.NPM_VERSION }} 2>&1)"; then
npm install -g --omit=dev homebridge-config-ui-x@${{ needs.publish.outputs.NPM_VERSION }} && break || {
if [ $? -eq 1 ] && grep -q 'ETARGET' <<< "$(npm install -g --omit=dev homebridge-config-ui-x@${{ needs.publish.outputs.NPM_VERSION }} 2>&1)"; then
echo "Attempt $i failed with ETARGET error. Retrying in 1 minute..."
sleep 60
else
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x

- name: Install package
run: |
export npm_config_prefix=$(pwd)/package
for i in {1..10}; do
npm install -g homebridge-config-ui-x@${{ needs.tag.outputs.version }} && break || {
if [ $? -eq 1 ] && grep -q 'ETARGET' <<< "$(npm install -g homebridge-config-ui-x@${{ needs.tag.outputs.version }} 2>&1)"; then
npm install -g --omit=dev homebridge-config-ui-x@${{ needs.tag.outputs.version }} && break || {
if [ $? -eq 1 ] && grep -q 'ETARGET' <<< "$(npm install -g --omit=dev homebridge-config-ui-x@${{ needs.tag.outputs.version }} 2>&1)"; then
echo "Attempt $i failed with ETARGET error. Retrying in 1 minute..."
sleep 60
else
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,33 +50,32 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build:server
- run: npm run lint
- run: npm run test

# remove dev deps
- run: npm clean-install --production
- run: npm clean-install --omit=dev

# test hb-service
- run: node dist/bin/hb-service.js -v
- if: runner.os == 'Linux'
name: Run hb-service install (Linux)
run: |
sudo npm link
sudo npm install -g homebridge
sudo npm install -g --omit=dev homebridge
sudo hb-service install --user homebridge --group `id -gn`
sleep 30
- if: runner.os == 'macOS'
name: Run hb-service install (macOS)
run: |
sudo npm link
sudo npm install -g homebridge
sudo npm install -g --omit=dev homebridge
sudo hb-service install
sleep 30
- if: runner.os == 'Windows'
name: Run hb-service install (Windows)
run: |
npm link
npm install -g homebridge
npm install -g --omit=dev homebridge
hb-service install
Start-Sleep -s 30
- name: Test hb-service install
Expand Down
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to `homebridge-config-ui-x` will be documented in this file. This project tries to adhere to [Semantic Versioning](http://semver.org/).

## v4.69.0 (2025-01-25)
## BETA

### ⚠️ Upcoming Deprecations:

Expand All @@ -11,7 +11,24 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
- Drop support for Node.js `v18` and earlier, so please update to `v20` or `v22` - [more info on updating](https://github.com/homebridge/homebridge/wiki/How-To-Update-Node.js)
- Drop support for Raspberry Pi devices running on the `armv6` architecture (like the Pi 1 and Pi Zero) - please update your hardware
- Drop support for instances using `pnpm` as the package manager - consider updating your Homebridge instance to use npm instead - [more info on updating](https://github.com/homebridge/homebridge-apt-pkg/blob/latest/README.md#using-apt)
- Note that these are not requirements for UI `v4.69.0`
- Note that Homebridge UI `v5` will not be released before May 2025 (aligning with when Node.js `v18` reaches end-of-life)
- Note that these are not requirements for UI `v4.70.0`

### UI Changes

- updates to the `th.json` language file (#2338) (@tomzt)

### Other Changes

- append `--omit=dev` to `npm i` commands

### Homebridge Dependencies

- `@homebridge/hap-client` @ `v2.0.5`
- `@homebridge/node-pty-prebuilt-multiarch` @ `v0.11.14`
- `@homebridge/plugin-ui-utils` @ `v2.0.1`

## v4.69.0 (2025-01-25)

### ⚠️ Plugin Config Validation

Expand Down
Loading

0 comments on commit ed1c43c

Please sign in to comment.