diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 37f3461..ec011e7 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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 }}