Skip to content

Commit 69046ad

Browse files
committed
fix: specific version of node for github workflow
1 parent 85abe9a commit 69046ad

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ jobs:
1818
- name: Set up Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 22.12.0
2222
cache: "npm"
23+
cache-dependency-path: package-lock.json
2324

2425
- name: Install dependencies
2526
run: npm ci
@@ -42,17 +43,18 @@ jobs:
4243
- name: Set up Node.js
4344
uses: actions/setup-node@v4
4445
with:
45-
node-version: 22.x
46+
node-version: 22.12.0
4647
registry-url: https://registry.npmjs.org/
48+
cache: "npm"
49+
cache-dependency-path: package-lock.json
4750

48-
- name: Upgrade npm for Trusted Publishing
51+
- name: Show toolchain
4952
run: |
50-
npm install -g npm@latest
5153
npm --version
5254
node --version
5355
5456
- name: Install dependencies
55-
run: npm ci
57+
run: npm ci --no-audit --no-fund
5658

5759
- name: Install PostCSS CLI globally (for build step)
5860
run: npm install -g postcss postcss-cli

0 commit comments

Comments
 (0)