Add step to set version from git tag in CI workflow
All checks were successful
CI / build (push) Successful in 19s
CI / publish (push) Successful in 15s

This commit is contained in:
2025-09-06 18:55:17 +01:00
parent 662b5d0665
commit 4c70fc71c8

View File

@@ -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 }}