File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 11name : Publish
22on :
33 schedule :
4- - cron : ' 40 2 * * *'
4+ - cron : ' 40 3 * * *'
55jobs :
66 publish :
77 name : " Publish packages"
1010 - uses : actions/checkout@v1
1111 with :
1212 ref : release
13+ - uses : dcodeIO/setup-node-nvm@v1.0.0
14+ with :
15+ node-version : node
1316 - name : Merge master
1417 env :
1518 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1922 git remote set-url origin "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
2023 git fetch origin
2124 git merge origin/master
22- - uses : actions/setup-node@v1
2325 - name : Install dependencies
2426 run : npm ci
2527 - name : Build distribution files
@@ -57,21 +59,16 @@ jobs:
5759 git push origin release
5860 git push origin v$VERSION
5961 - name : Publish to npm
60- env :
61- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
6262 run : |
63- npm publish --tag $CHANNEL --access public
63+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
64+ npm publish --tag $CHANNEL
6465 cd ./lib/loader
6566 npm publish --tag $CHANNEL --access public
6667 cd ../..
67- - uses : actions/setup-node@v1
68- with :
69- registry-url : ' https://npm.pkg.github.com'
70- scope : ' @AssemblyScript'
7168 - name : Publish to gpr
72- env :
73- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7469 run : |
70+ echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
71+ sed -i 's/"assemblyscript"/"@assemblyscript\/assemblyscript"/' package.json
7572 npm publish --tag $CHANNEL --access public
7673 cd ./lib/loader
7774 npm publish --tag $CHANNEL --access public
You can’t perform that action at this time.
0 commit comments