Clean up publishing script

This commit is contained in:
Andrew Branch
2020-04-09 11:40:26 -07:00
parent 557a94b358
commit 36fa4fba4d

View File

@@ -27,8 +27,10 @@ jobs:
run: |
ref=${{ github.ref }} # refs/tags/v0.0.1
tag=${ref:11} # 0.0.1
npx lerna version $tag --yes --tag-version-prefix=''
npx lerna version $tag --yes --no-git-tag-version --no-push
git commit -am "v$tag"
git push && git push --tags -f
- name: publish to npm
run: npx lerna publish from-git --yes --tag-version-prefix='' --no-verify-access
run: npx lerna publish from-git --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}