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 1
1
name : Publish
2
2
on :
3
3
schedule :
4
- - cron : ' 40 2 * * *'
4
+ - cron : ' 40 3 * * *'
5
5
jobs :
6
6
publish :
7
7
name : " Publish packages"
10
10
- uses : actions/checkout@v1
11
11
with :
12
12
ref : release
13
+ - uses : dcodeIO/setup-node-nvm@v1.0.0
14
+ with :
15
+ node-version : node
13
16
- name : Merge master
14
17
env :
15
18
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19
22
git remote set-url origin "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
20
23
git fetch origin
21
24
git merge origin/master
22
- - uses : actions/setup-node@v1
23
25
- name : Install dependencies
24
26
run : npm ci
25
27
- name : Build distribution files
@@ -57,21 +59,16 @@ jobs:
57
59
git push origin release
58
60
git push origin v$VERSION
59
61
- name : Publish to npm
60
- env :
61
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
62
62
run : |
63
- npm publish --tag $CHANNEL --access public
63
+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
64
+ npm publish --tag $CHANNEL
64
65
cd ./lib/loader
65
66
npm publish --tag $CHANNEL --access public
66
67
cd ../..
67
- - uses : actions/setup-node@v1
68
- with :
69
- registry-url : ' https://npm.pkg.github.com'
70
- scope : ' @AssemblyScript'
71
68
- name : Publish to gpr
72
- env :
73
- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
74
69
run : |
70
+ echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
71
+ sed -i 's/"assemblyscript"/"@assemblyscript\/assemblyscript"/' package.json
75
72
npm publish --tag $CHANNEL --access public
76
73
cd ./lib/loader
77
74
npm publish --tag $CHANNEL --access public
You can’t perform that action at this time.
0 commit comments