Skip to content

Commit c93a93a

Browse files
Fix CI: add npm ci before publish, bump Node to 22
Publish jobs failed because npm publish triggers the prepare script (husky) but dependencies weren't installed. Also bump Node from 20 to 22 to resolve deprecation warnings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 587f532 commit c93a93a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/npmpublish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 20
18+
node-version: 22
1919
- run: npm ci
2020
- run: npm test
2121

@@ -26,8 +26,9 @@ jobs:
2626
- uses: actions/checkout@v4
2727
- uses: actions/setup-node@v4
2828
with:
29-
node-version: 20
29+
node-version: 22
3030
registry-url: https://registry.npmjs.org/
31+
- run: npm ci
3132
- run: npm publish
3233
env:
3334
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
@@ -39,9 +40,10 @@ jobs:
3940
- uses: actions/checkout@v4
4041
- uses: actions/setup-node@v4
4142
with:
42-
node-version: 20
43+
node-version: 22
4344
registry-url: https://npm.pkg.github.com/
4445
scope: '@Ghost---Shadow'
46+
- run: npm ci
4547
- run: npm publish
4648
env:
4749
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)