Skip to content

Commit 70d1daf

Browse files
authored
fix: Move version.json generation to be after build step (#2486)
1 parent 0cdd654 commit 70d1daf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,6 @@ jobs:
9494
id: version
9595
run: |
9696
echo "NEXT_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
97-
98-
- name: Generate version.json
99-
if: (env.DRY_RUN) == 'false'
100-
run: |
101-
echo '{ "version": "${{ steps.version.outputs.NEXT_VERSION }}" }' > ./sdk/version.json
102-
cp ./sdk/version.json ./sdk/dist/
10397
10498
- name: Typecheck
10599
run: yarn typecheck
@@ -119,6 +113,12 @@ jobs:
119113
ls -l ./sdk/dist/browser/checkout || echo 1
120114
[ -d "./sdk/dist/browser/checkout" ] || { echo "Error: Directory does not exist." && exit 1; }
121115
116+
- name: Generate version.json
117+
if: (env.DRY_RUN) == 'false'
118+
run: |
119+
echo '{ "version": "${{ steps.version.outputs.NEXT_VERSION }}" }' > ./sdk/version.json
120+
cp ./sdk/version.json ./sdk/dist/
121+
122122
- name: Push tags
123123
# Boolean inputs are not actually booleans, see https://github.com/actions/runner/issues/1483
124124
if: (env.DRY_RUN) == 'false'

0 commit comments

Comments
 (0)