Skip to content

Commit

Permalink
fix: skip deploy when no release has been created
Browse files Browse the repository at this point in the history
  • Loading branch information
einaralex committed Jan 8, 2025
1 parent 8e29780 commit 9b30ee2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,25 @@ jobs:
- name: Lint
run: pnpm lint

- name: Pre-Publish SDK # not working
- name: Pre-Publish SDK
run: pnpm --filter @monerium/sdk pub:pre
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: needs.release-please.outputs.releases_created == 'false'

- name: Pre-Publish React Provider
run: pnpm --filter @monerium/sdk-react-provider pub:pre
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: needs.release-please.outputs.releases_created == 'false'

- name: Publish SDK
run: pnpm --filter @monerium/sdk publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ needs.release-please.outputs.release_created_sdk }}

- name: Publish React Provider
# run: pnpm --filter @monerium/sdk-react-provider pub:pre
run: pnpm --filter @monerium/sdk-react-provider publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Expand All @@ -100,5 +105,5 @@ jobs:
run: echo "Releases were created"
- name: Deploy to GitHub Pages
id: docs-deployment
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' && needs.release-please.outputs.releases_created == 'true'
uses: actions/deploy-pages@v4

0 comments on commit 9b30ee2

Please sign in to comment.