File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3-
41name : Node.js Package
52
63on :
4340 - run : npm run build --if-present
4441 - run : npm test
4542 - run : npm publish
46-
47- publish-gh-pkgs :
48- needs : build
49- runs-on : ubuntu-latest
50- steps :
51- - uses : actions/checkout@v5
52- with :
53- submodules : ' true'
54- - uses : actions/setup-node@v6
55- with :
56- node-version : 20
57- registry-url : ' https://npm.pkg.github.com'
58- - name : Update npm
59- run : npm install -g npm@latest
60- - run : npm install
61- - run : npm run build --if-present
62- - run : npm test
63- - run : npm publish
64- env :
65- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments