Skip to content

Commit

Permalink
ci: upload artifacts and assets only when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
helciofranco committed Mar 21, 2024
1 parent e98e1b2 commit f1167c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-changeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}

- name: Upload artifacts to Sentry
if: steps.changesets.outputs.published == 'true'
if: !steps.changesets.outputs.pullRequestNumber
run: |
pnpm sentry-cli sourcemaps inject --release ${{ env.BUILD_VERSION }} ./dist-crx
pnpm sentry-cli sourcemaps upload --release ${{ env.BUILD_VERSION }} ./dist-crx
Expand All @@ -76,7 +76,7 @@ jobs:
working-directory: ./packages/app

- name: Attach Fuel Wallet to release
if: steps.changesets.outputs.published == 'true'
if: !steps.changesets.outputs.pullRequestNumber
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit f1167c1

Please sign in to comment.