Skip to content

Commit

Permalink
Merge pull request #9 from nginxinc/avarghese/publish_tags
Browse files Browse the repository at this point in the history
create and push tags on publish
  • Loading branch information
arpith-f5 authored Aug 31, 2023
2 parents a4efd18 + a4ec840 commit 3af8be8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/reference-lib.publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 3af8be8

Please sign in to comment.