File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments