Skip to content

Commit 02ba792

Browse files
Use tag-dev-sha as version name for latest trunk plugin build (#130)
1 parent e35b494 commit 02ba792

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/publish-latest-plugin-zip.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
outputs:
12+
tag_name: ${{ steps.get_tag.outputs.tag_name }}
1113

1214
steps:
1315
- name: Checkout code
@@ -18,11 +20,15 @@ jobs:
1820
with:
1921
node-version: "20"
2022

23+
- name: Get tag name
24+
id: get_tag
25+
run: echo "tag_name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
26+
2127
- name: Install dependencies
2228
run: npm ci
2329

2430
- name: Update version to latest trunk commit
25-
run: "find . -type f -exec sed -i 's/0.0.0-placeholder/${{ github.sha }}/g' {} +"
31+
run: "find . -type f -exec sed -i 's/0.0.2-dev-e35b494710b4d5d40cc0b7adfe5398ef52307bfb/${{ steps.get_tag.outputs.tag_name }}-${{ github.sha }}/g' {} +"
2632

2733
- name: Build and create plugin zip
2834
run: npm run plugin-zip

0 commit comments

Comments
 (0)