Skip to content

Commit ace4abd

Browse files
committed
extract version from manifest
1 parent 1506614 commit ace4abd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/release.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,20 @@ on:
66
pull_request:
77

88
jobs:
9+
manifest:
10+
runs-on: ubuntu-latest
11+
outputs:
12+
version: ${{ steps.extract.outputs.version }}
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- id: extract
17+
working-directory: ./workspace/extension/static
18+
run: echo version=v$(jq -r '.version' manifest.json) >> $GITHUB_OUTPUT
19+
920
bundle:
1021
runs-on: ubuntu-latest
22+
needs: manifest
1123

1224
steps:
1325
- uses: actions/checkout@v4
@@ -26,6 +38,9 @@ jobs:
2638
name: extension-${{ github.sha }}
2739
path: workspace/extension/build/svelte-devtools.zip
2840

41+
- run: echo ${{ needs.manifest.outputs.version }}
42+
# - run: gh release create --draft
43+
2944
# publish:
3045
# runs-on: ubuntu-latest
3146
# needs: bundle

0 commit comments

Comments
 (0)