Commit 604c4f8 1 parent 466f93c commit 604c4f8 Copy full SHA for 604c4f8
File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
build :
10
10
runs-on : ubuntu-latest
11
- outputs :
12
- tag_name : ${{ steps.get_tag.outputs.tag_name }}
13
11
14
12
steps :
15
13
- name : Checkout code
@@ -20,18 +18,18 @@ jobs:
20
18
with :
21
19
node-version : " 20"
22
20
23
- - name : Get tag name
21
+ - name : Get latest tag
24
22
id : get_tag
25
- run : |
26
- git fetch --tags --force
27
- LATEST_TAG=$(git describe --tags --abbrev=0)
28
- echo "tag_name=$LATEST_TAG" >> $GITHUB_OUTPUT
23
+ uses : actions-ecosystem/action-get-latest-tag@v1
24
+ with :
25
+ semver_only : true
26
+ initial_version : 0.0.0
29
27
30
28
- name : Install dependencies
31
29
run : npm ci
32
30
33
31
- name : Update version to latest trunk commit
34
- run : " find . -type f -exec sed -i 's/0.0.0-placeholder/${{ steps.get_tag.outputs.tag_name }}-${{ github.sha }}/g' {} +"
32
+ run : " find . -type f -exec sed -i 's/0.0.0-placeholder/${{ steps.get_tag.outputs.tag }}-${{ github.sha }}/g' {} +"
35
33
36
34
- name : Build and create plugin zip
37
35
run : npm run plugin-zip
You can’t perform that action at this time.
0 commit comments