Skip to content

Commit cddc90f

Browse files
authored
Update build.yml
1 parent caf4921 commit cddc90f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up Node.js
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 18
26+
node-version: 20
2727
registry-url: 'https://registry.npmjs.org'
2828

2929
- name: Install packages
@@ -34,7 +34,10 @@ jobs:
3434
run: yarn lint && yarn test
3535
- name: Deploy to NPM
3636
if: github.repository_owner == 'Authress' && github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push'
37-
run: npm publish --access public
37+
# Version 11.5.1 or later is required for npm publish
38+
run: |
39+
npm install -g npm@11.5.1
40+
npm publish --access public
3841
3942
- name: After build
4043
if: github.repository_owner == 'Authress' && github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push'

0 commit comments

Comments
 (0)