Skip to content

Commit

Permalink
GithubActions try auto-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianpraja committed Nov 7, 2021
1 parent 02f882b commit 8bbc26d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,24 @@ jobs:
CI: true


tag:
name: Tag
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup Node
uses: actions/setup-node@v2
- name: package-version-to-git-tag
uses: pkgdeps/git-tag-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_repo: ${{ github.repository }}
git_commit_sha: ${{ github.sha }}
version: "1.0.0"
git_tag_prefix: "v"


# publish if the version number in package.json differs from the latest on NPM
publish:
needs: test
Expand Down

0 comments on commit 8bbc26d

Please sign in to comment.