Skip to content

Commit

Permalink
fix: Move version.json generation to be after build step (#2486)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimi-imtbl authored Jan 6, 2025
1 parent 0cdd654 commit 70d1daf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,6 @@ jobs:
id: version
run: |
echo "NEXT_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
- name: Generate version.json
if: (env.DRY_RUN) == 'false'
run: |
echo '{ "version": "${{ steps.version.outputs.NEXT_VERSION }}" }' > ./sdk/version.json
cp ./sdk/version.json ./sdk/dist/
- name: Typecheck
run: yarn typecheck
Expand All @@ -119,6 +113,12 @@ jobs:
ls -l ./sdk/dist/browser/checkout || echo 1
[ -d "./sdk/dist/browser/checkout" ] || { echo "Error: Directory does not exist." && exit 1; }
- name: Generate version.json
if: (env.DRY_RUN) == 'false'
run: |
echo '{ "version": "${{ steps.version.outputs.NEXT_VERSION }}" }' > ./sdk/version.json
cp ./sdk/version.json ./sdk/dist/
- name: Push tags
# Boolean inputs are not actually booleans, see https://github.com/actions/runner/issues/1483
if: (env.DRY_RUN) == 'false'
Expand Down

0 comments on commit 70d1daf

Please sign in to comment.