Skip to content

Commit

Permalink
fix(custom): add VERSION env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur-arch committed Nov 27, 2024
1 parent f90829f commit 1d9514e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/preview-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,14 @@ jobs:
run: |
VERSION="0.0.0-pr-${{ github.event.pull_request.number }}-$(git rev-parse --short HEAD)"
echo "Preview release version: $VERSION"
echo "version=$VERSION" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> $GITHUB_ENV
# Step 11: Create a preview release
- name: Publish Preview Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_NUXT_TOKEN }}
VERSION: ${{ env.VERSION }}
run: |
echo "Publishing preview release ${{ env.version }}"
npx semantic-release --no-ci --branches main --tag-format "v${{version}}-pr-${{ github.event.pull_request.number }}-$(git rev-parse --short HEAD)"
echo "Publishing preview release $VERSION"
npx semantic-release --no-ci --branches main --tag-format "v${VERSION}"

0 comments on commit 1d9514e

Please sign in to comment.