Skip to content

Commit d18fefa

Browse files
authored
Modify release workflow for npm package
Updated Node.js version and added additional steps for testing and building before publishing.
1 parent 94b370a commit d18fefa

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/release-package.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,21 @@ on:
88
release:
99
types: [created]
1010

11+
permissions:
12+
id-token: write # Required for OIDC
13+
contents: read
14+
1115
jobs:
12-
publish-npm:
16+
publish:
1317
runs-on: ubuntu-latest
1418
steps:
1519
- uses: actions/checkout@v4
20+
1621
- uses: actions/setup-node@v4
1722
with:
18-
node-version: 21
19-
registry-url: https://registry.npmjs.org
20-
- run: npm install
23+
node-version: '24'
24+
registry-url: 'https://registry.npmjs.org'
25+
- run: npm ci
26+
- run: npm run build --if-present
27+
- run: npm test
2128
- run: npm publish
22-
env:
23-
NODE_AUTH_TOKEN: ${{secrets.NPMJS_ACCESS_TOKEN}}

0 commit comments

Comments
 (0)