Skip to content

Commit dd31843

Browse files
committed
setup github release workflow
1 parent cbe97b4 commit dd31843

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: NPM Publish
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: read
13+
14+
jobs:
15+
publish-npm:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v5
19+
- uses: actions/setup-node@v5
20+
with:
21+
node-version: 22
22+
registry-url: https://registry.npmjs.org/
23+
- run: npm install -g npm@latest
24+
- run: npm ci --ignore-scripts --no-audit --no-fund
25+
- run: npm test
26+
- run: npm run build
27+
- run: npm publish --access public

0 commit comments

Comments
 (0)