Skip to content

Commit

Permalink
Updated if condition for build artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinshahfws committed Nov 10, 2023
1 parent 1fd99b5 commit 64a79df
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
run: |
echo "Setting RELEASE_CHANNEL to '$(node ./src/js/version.mjs channel $NPM_DIST_TAG)' using branch name '$NPM_DIST_TAG'"
echo "RELEASE_CHANNEL=$(node ./src/js/version.mjs channel $NPM_DIST_TAG)" >> $GITHUB_ENV
echo "EVENT NAME ::: " ${{ github.event.number }}
- name: Override release channel for PRs
if: github.event_name == 'pull_request'
run: |
Expand All @@ -69,10 +70,10 @@ jobs:
npm_config_tag: ${{ env.NPM_DIST_TAG }} # <-- For main, this is `latest.` Otherwise, `next`, `next-major`, etc. See ./.releaserc for release branch config.
run: npx semantic-release --dry-run
- name: Build artifacts for PRs
if: github.event_name == 'pull_request'
if: github.ref_name != 'main' && github.ref_name != 'next'
run: |
npm version prerelease --preid pr207 --workspaces --git-tag-version false
npm version prerelease --preid pr207 --workspaces --include-workspace-root --git-tag-version false
npm version prerelease --preid $RELEASE_CHANNEL --workspaces --git-tag-version false
npm version prerelease --preid $RELEASE_CHANNEL --workspaces --include-workspace-root --git-tag-version false
npm run dist
- name: Check if semantic-release created a build
id: check_build
Expand Down

0 comments on commit 64a79df

Please sign in to comment.