Skip to content

Commit 8652dc9

Browse files
authored
Update deps (Koenkk#2918)
* OK * more updates * updates * u * update * u * u * u * u * u * u * update deps pipelinee * u
1 parent fef90fa commit 8652dc9

File tree

9 files changed

+7001
-14187
lines changed

9 files changed

+7001
-14187
lines changed

.github/workflows/build-deploy.yml

+9-21
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,26 @@ jobs:
1212
- name: Checkout 🚚
1313
uses: actions/checkout@v4
1414

15+
- name: Setup pnpm ⚗
16+
uses: pnpm/action-setup@v4
17+
with:
18+
version: 9
19+
1520
- name: Setup Node.js ⚗
1621
uses: actions/setup-node@v4
1722
with:
1823
node-version: 20
19-
20-
- name: Determine node version №
21-
id: node-version
22-
run: |
23-
echo "::set-output name=version::$(node -v)"
24-
25-
- name: Restore Cache 📦
26-
uses: actions/cache@v4
27-
id: cache
28-
with:
29-
path: node_modules
30-
key: ${{ runner.os }}-node-${{ steps.node-version.outputs.version }}-${{ hashFiles('package-lock.json') }}
24+
cache: pnpm
3125

3226
- name: Install dependencies 🌐
33-
if: steps.cache.outputs.cache-hit != 'true'
34-
run: npm ci
35-
36-
# - name: Set DEVELOP_BRANCH env var
37-
# if: github.ref == 'refs/heads/develop'
38-
# run: |
39-
# echo "DEVELOP_BRANCH=yes" >> $GITHUB_ENV
27+
run: pnpm install --frozen-lockfile
4028

4129
- name: Build 🛠
4230
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop'
43-
run: npm run build
31+
run: pnpm run build
4432

4533
- name: Run tests 🩺
46-
run: npm run test
34+
run: pnpm run test
4735

4836
- name: Add build.txt 🗓
4937
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop'

.github/workflows/update_deps.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Update dependencies
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 0 * * 0"
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
update_deps:
12+
permissions:
13+
contents: write # for peter-evans/create-pull-request to create branch
14+
pull-requests: write # for peter-evans/create-pull-request to create a PR
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
ref: master
21+
token: ${{ secrets.GH_TOKEN }}
22+
23+
- name: Setup pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: 9
27+
28+
- name: Setup node
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 22
32+
cache: pnpm
33+
34+
- name: Update dependencies
35+
run: |
36+
npx npm-check-updates -u -x sass-loader -x zigbee-herdsman-converters
37+
npx npm-check-updates -u --target @next -x typescript
38+
rm -rf pnpm-lock.yaml
39+
pnpm install
40+
41+
- name: Create pull request
42+
uses: peter-evans/create-pull-request@v6
43+
with:
44+
commit-message: "fix(ignore): update dependencies"
45+
branch: "deps/all"
46+
title: Update dependencies
47+
token: ${{ secrets.GH_TOKEN }}

docgen/tests/utils.ts

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import { promisify } from 'util';
2-
import * as glob from 'glob';
1+
import { glob } from "glob";
32
import * as path from "path";
43

5-
export const distDir = path.resolve(__dirname, '..', '..', 'dist');
6-
export const docsDir = path.resolve(__dirname, '..', '..', 'docs');
4+
export const distDir = path.resolve(__dirname, "..", "..", "dist");
5+
export const docsDir = path.resolve(__dirname, "..", "..", "docs");
76

8-
export async function findFiles(dir: string, type = 'html') {
9-
return promisify(glob)(`${ dir }/**/*.${ type }`);
7+
export async function findFiles(dir: string, type = "html") {
8+
return glob(`${dir}/**/*.${type}`);
109
}
1110

1211
export async function findDeviceFiles() {
13-
return findFiles(path.resolve(__dirname, docsDir, 'devices'), 'md');
12+
return findFiles(path.resolve(__dirname, docsDir, "devices"), "md");
1413
}

docs/guide/configuration/zigbee-network.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ Set `network_key: GENERATE` to let Zigbee2MQTT generate a new random key on the
3939
:::
4040

4141
::: tip
42-
[Reduce Wi-Fi interference by changing the Zigbee
43-
channel](../../advanced/zigbee/02_improve_network_range_and_stability.html#reduce-wi-fi-interference-by-changing-the-zigbee-channel.md)
42+
[Reduce Wi-Fi interference by changing the Zigbee channel](../../advanced/zigbee/02_improve_network_range_and_stability.md#reduce-wi-fi-interference-by-changing-the-zigbee-channel)
4443
:::
4544

4645
### Specifying network_key in a different file

0 commit comments

Comments
 (0)