File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will 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 : Publish package to NPM repository
5+ on :
6+ release :
7+ types : [created]
8+
9+ jobs :
10+ publish-npm :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v3
14+ - uses : actions/setup-node@v3
15+ with :
16+ node-version : ' 12.x'
17+ registry-url : ' https://registry.npmjs.org'
18+ - run : npm ci
19+ - run : npm publish
20+ env :
21+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
22+ publish-git :
23+ runs-on : ubuntu-latest
24+ steps :
25+ - uses : actions/checkout@v3
26+ - uses : actions/setup-node@v3
27+ with :
28+ node-version : ' 12.x'
29+ registry-url : ' https://registry.npmjs.org'
30+ scope : ' @contentstack'
31+ - run : npm ci
32+ - run : npm publish
33+ env :
34+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments