File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 66
77jobs :
88 publish-npm :
9+ name : Publish to npm
910 runs-on : ubuntu-latest
1011 permissions :
1112 contents : read
4344 - run : npm whoami; npm --ignore-scripts publish --provenance --access public
4445 env :
4546 NODE_AUTH_TOKEN : ${{secrets.npm_token}}
47+ publish-github :
48+ name : Publish to GitHub Packages
49+ runs-on : ubuntu-latest
50+ needs : [bump-version, create-release]
51+ permissions :
52+ contents : read
53+ packages : write
54+ steps :
55+ - name : Checkout ref
56+ uses : actions/checkout@v3
57+ - name : Setup Node
58+ uses : actions/setup-node@v3
59+ with :
60+ node-version : 18
61+ registry-url : https://registry.npmjs.org/
62+ cache : npm
63+ - name : Install npm depencies
64+ run : npm ci
65+ - name : Build package
66+ run : npm run build
67+ - name : Publish
68+ run : npm publish
69+ env :
70+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments