mirror of
https://github.com/chenasraf/DefinitelyTyped-tools.git
synced 2026-05-18 01:49:03 +00:00
Clean up publishing script
This commit is contained in:
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user