Skip to content

Commit 159ef6a

Browse files
committed
Try pass build version across workflows
1 parent c24d463 commit 159ef6a

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@ jobs:
3636
with:
3737
name: luna-artifacts
3838
path: ./luna.zip
39+
40+
- name: Get version from package.json
41+
run: |
42+
VERSION=$(jq -r .version ./dist/package.json)
43+
echo "VERSION=${VERSION}" >> $GITHUB_ENV

.github/workflows/releaseDev.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
Release:
1616
name: Release dev on GitHub
1717
needs: Build
18+
env:
19+
VERSION: ${{ needs.Build.outputs.version }}
1820
runs-on: ubuntu-latest
1921

2022
steps:
@@ -24,11 +26,6 @@ jobs:
2426
name: luna-artifacts
2527
path: ./dist/
2628

27-
- name: Get version from package.json
28-
run: |
29-
VERSION=$(jq -r .version ./dist/package.json)
30-
echo "VERSION=${VERSION}" >> $GITHUB_ENV
31-
3229
- name: Publish dev release on GitHub
3330
uses: marvinpinto/action-automatic-releases@latest
3431
with:

0 commit comments

Comments
 (0)