Skip to content

Commit a5746f9

Browse files
committed
fix: Update actions versions in publish workflow and streamline npm publish steps
1 parent 831fee7 commit a5746f9

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,14 @@ jobs:
1212
contents: read
1313
id-token: write
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616

17-
- uses: actions/setup-node@v4
17+
- uses: actions/setup-node@v6
1818
with:
19-
node-version: '20'
20-
registry-url: 'https://registry.npmjs.org'
21-
19+
node-version: '20.x'
2220
- run: npm ci
23-
24-
- run: npm run build
25-
26-
- run: npm publish --provenance --access public
27-
env:
28-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
21+
- run: npm test
22+
- uses: JS-DevTools/npm-publish@v4
23+
with:
24+
access: public
25+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)