Skip to content

Commit

Permalink
Use tag-dev-sha as version name for latest trunk plugin build (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
candy02058912 authored Sep 6, 2024
1 parent e35b494 commit 02ba792
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish-latest-plugin-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.get_tag.outputs.tag_name }}

steps:
- name: Checkout code
Expand All @@ -18,11 +20,15 @@ jobs:
with:
node-version: "20"

- name: Get tag name
id: get_tag
run: echo "tag_name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- name: Install dependencies
run: npm ci

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

- name: Build and create plugin zip
run: npm run plugin-zip
Expand Down

0 comments on commit 02ba792

Please sign in to comment.