File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 66
77env :
88 NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
9+ NPM_AUTH_TOKEN_ORG : ${{ secrets.NPM_AUTH_TOKEN_ORG }}
910
1011jobs :
1112 publish :
Original file line number Diff line number Diff line change 1818
1919if [ " $published " != " $version " ]; then
2020 echo " Try to publish $version version of the $name package."
21- echo " //registry.npmjs.org/:_authToken=\$ {NPM_AUTH_TOKEN}" > .npmrc
21+
22+ if [ " $name " != " 8base-react-sdk" ]; then
23+ echo " //registry.npmjs.org/:_authToken=\$ {NPM_AUTH_TOKEN_ORG}" > .npmrc
24+ else
25+ echo " //registry.npmjs.org/:_authToken=\$ {NPM_AUTH_TOKEN}" > .npmrc
26+ fi
27+
2228 npm publish --access public; if [ " $? " != " 0" ]; then status=1; fi
2329else
2430 echo " Current version of the package already published to the NPM."
You can’t perform that action at this time.
0 commit comments