File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -20,24 +20,31 @@ jobs:
20
20
runs-on : ubuntu-24.04
21
21
steps :
22
22
- name : Check out a copy of the repo
23
- uses : actions/checkout@v2
23
+ uses : actions/checkout@v4
24
+ with :
25
+ fetch-depth : 0
26
+ fetch-tags : true
27
+
24
28
- name : Use Node.js ${{ env.NODE_VERSION }}
25
29
uses : actions/setup-node@v2
26
30
with :
27
31
node-version : ${{ env.NODE_VERSION }}
28
32
33
+ - id : get_version
34
+ uses : battila7/get-version-action@v2
35
+
29
36
- name : show tag
30
37
id : tag
31
38
run : |
32
- echo ::set-output name=TAG::${GITHUB_REF##*/ }
39
+ echo ::set-output name=TAG::${{ steps.get_version.outputs.version-without-v } }
33
40
34
41
- name : publish package npm
35
42
id : publish
36
- uses : JS-DevTools/npm-publish@v1
43
+ uses : JS-DevTools/npm-publish@v3
37
44
with :
38
45
token : ${{ secrets.NPM_TOKEN }}
39
46
tag : ${{ steps.tag.outputs.TAG }}
40
47
41
48
- if : steps.publish.outputs.type != 'none'
42
49
run : |
43
- echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
50
+ echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
You can’t perform that action at this time.
0 commit comments