Skip to content

Commit a8d2755

Browse files
authored
Enable publishing (#942)
1 parent 6db9b1e commit a8d2755

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,29 +48,31 @@ jobs:
4848
git commit --allow-empty -m "Release v$VERSION"
4949
fi
5050
echo ::set-env name=VERSION::$VERSION
51+
cd ./lib/loader
52+
npm version $VERSION --no-git-tag-version --force
53+
cd ../..
5154
- name: Create tag and push distribution files
5255
run: |
5356
git tag v$VERSION
5457
git push origin release
5558
git push origin v$VERSION
56-
# - name: Publish to npm
57-
# env:
58-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
59-
# run: |
60-
# echo "npm publish --tag $CHANNEL"
61-
# cd ./lib/loader
62-
# npm version $VERSION --no-git-tag-version --force
63-
# echo "npm publish --tag $CHANNEL"
64-
# cd ../..
65-
# - uses: actions/setup-node@v1
66-
# with:
67-
# registry-url: 'https://npm.pkg.github.com'
68-
# scope: '@AssemblyScript'
69-
# - name: Publish to gpr
70-
# env:
71-
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72-
# run: |
73-
# echo "npm publish --tag $CHANNEL"
74-
# cd ./lib/loader
75-
# echo "npm publish --tag $CHANNEL"
76-
# cd ../..
59+
- name: Publish to npm
60+
env:
61+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62+
run: |
63+
npm publish --tag $CHANNEL --access public
64+
cd ./lib/loader
65+
npm publish --tag $CHANNEL --access public
66+
cd ../..
67+
- uses: actions/setup-node@v1
68+
with:
69+
registry-url: 'https://npm.pkg.github.com'
70+
scope: '@AssemblyScript'
71+
- name: Publish to gpr
72+
env:
73+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
run: |
75+
npm publish --tag $CHANNEL --access public
76+
cd ./lib/loader
77+
npm publish --tag $CHANNEL --access public
78+
cd ../..

0 commit comments

Comments
 (0)