diff --git a/.github/workflows/reference-lib.publish.yml b/.github/workflows/reference-lib.publish.yml index 663a7d7..ccbcf91 100644 --- a/.github/workflows/reference-lib.publish.yml +++ b/.github/workflows/reference-lib.publish.yml @@ -30,8 +30,16 @@ jobs: run: npm ci - name: Bundle using rollup run: npm run build + - name: get package-version + run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV - name: publish package if: github.event_name == 'push' run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create and push tag + if: github.event_name == 'push' + uses: mathieudutour/github-tag-action@v6.1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + custom_tag: ${{ env.PACKAGE_VERSION }}