Add step to set version from git tag in CI workflow
This commit is contained in:
@@ -44,6 +44,11 @@ jobs:
|
||||
- name: Build project
|
||||
run: npm run build
|
||||
|
||||
- name: Set version from git tag
|
||||
run: |
|
||||
VERSION=${GITHUB_REF#refs/tags/v}
|
||||
npm version $VERSION --no-git-tag-version
|
||||
|
||||
- name: Setup npm for publishing
|
||||
run: |
|
||||
npm config set //git.3t.network/api/packages/3t.network/npm/:_authToken ${{ secrets.PUBLISH_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user