Skip to content

Commit 8bbc26d

Browse files
committed
GithubActions try auto-tag
1 parent 02f882b commit 8bbc26d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,24 @@ jobs:
5252
CI: true
5353

5454

55+
tag:
56+
name: Tag
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: checkout
60+
uses: actions/checkout@v2
61+
- name: setup Node
62+
uses: actions/setup-node@v2
63+
- name: package-version-to-git-tag
64+
uses: pkgdeps/git-tag-action@v2
65+
with:
66+
github_token: ${{ secrets.GITHUB_TOKEN }}
67+
github_repo: ${{ github.repository }}
68+
git_commit_sha: ${{ github.sha }}
69+
version: "1.0.0"
70+
git_tag_prefix: "v"
71+
72+
5573
# publish if the version number in package.json differs from the latest on NPM
5674
publish:
5775
needs: test

0 commit comments

Comments
 (0)