Skip to content

Commit 0b9a80a

Browse files
committed
Try manual publish
1 parent 91f711e commit 0b9a80a

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Publish
22
on:
33
schedule:
4-
- cron: '40 2 * * *'
4+
- cron: '40 3 * * *'
55
jobs:
66
publish:
77
name: "Publish packages"
@@ -10,6 +10,9 @@ jobs:
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 }}
@@ -19,7 +22,6 @@ jobs:
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

0 commit comments

Comments
 (0)