Skip to content

Commit

Permalink
Add debugging print statement in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Apr 23, 2024
1 parent 5b247c1 commit 1298d00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ jobs:
SHA="${{github.event.pull_request.head.sha}}${{ github.sha }}"
SHORT_SHA=${SHA:0:7}
VER=$(node -p "require('./src/package.json').version")
echo "version: ${VER}+${SHORT_SHA}"
echo "WEBR_VERSION=${VER}+${SHORT_SHA}" > "$HOME/.webr-config.mk"
echo "WEBR_VERSION_TAG=latest" > "$HOME/.webr-config.mk"
shell: bash
- name: Set versioning for tag
if: "!contains(github.ref_name, 'main')"
run: |
VER=$(node -p "require('./src/package.json').version")
echo "version: ${VER}"
echo "WEBR_VERSION=${VER}" > "$HOME/.webr-config.mk"
echo "WEBR_VERSION_TAG=${{ github.ref_name }}" > "$HOME/.webr-config.mk"
shell: bash
Expand Down

0 comments on commit 1298d00

Please sign in to comment.