File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed
Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,24 @@ jobs:
2626 - name : " Install dependencies and build"
2727 run : npm ci && npm run build
2828
29- - name : " Publish to NPM"
30- run : |
31- npm config set registry https://registry.npmjs.org
32- npm publish ./dist --access public
29+ - name : " Set registry to NPM Packages"
30+ uses : actions/setup-node@v4
31+ with :
32+ node-version : 20
33+ registry-url : ' https://registry.npmjs.org'
34+
35+ - name : " Publish to NPM Packages"
36+ run : npm publish ./dist --access public
3337 env :
3438 NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
3539
36- - name : " Publish to GitHub"
37- run : |
38- npm config set registry https://npm.pkg.github.com
39- npm publish ./dist
40+ - name : " Set registry to GitHub Packages"
41+ uses : actions/setup-node@v4
42+ with :
43+ node-version : 20
44+ registry-url : ' https://npm.pkg.github.com'
45+
46+ - name : " Publish to GitHub Packages"
47+ run : npm publish ./dist
4048 env :
4149 NODE_AUTH_TOKEN : ${{ secrets.GH_ACCESS_TOKEN }}
You can’t perform that action at this time.
0 commit comments