Skip to content

Commit f4a9bd7

Browse files
committed
GithubActions try auto-tag
1 parent 84483be commit f4a9bd7

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,28 @@ jobs:
5454

5555
tag:
5656
name: Tag
57+
needs: test
5758
runs-on: ubuntu-latest
5859
steps:
5960
- name: checkout
6061
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
62+
- uses: Klemensas/action-autotag@stable
6563
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"
64+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
65+
tag_prefix: "v"
66+
#tag_suffix: " (beta)"
67+
#tag_message: "Custom message goes here."
68+
69+
#- name: setup Node
70+
# uses: actions/setup-node@v2
71+
# - name: package-version-to-git-tag
72+
# uses: pkgdeps/git-tag-action@v2
73+
# with:
74+
# github_token: ${{ secrets.GITHUB_TOKEN }}
75+
# github_repo: ${{ github.repository }}
76+
# git_commit_sha: ${{ github.sha }}
77+
# #version: "1.0.0"
78+
# git_tag_prefix: "v"
7179

7280

7381
# publish if the version number in package.json differs from the latest on NPM

0 commit comments

Comments
 (0)