Skip to content

Commit

Permalink
Merge pull request #110 from ChainSafe/mpetrunic/fix-ci
Browse files Browse the repository at this point in the history
Fix publish ci in case of failure
  • Loading branch information
mpetrunic authored Sep 2, 2021
2 parents 7517cb6 + 431e2f4 commit 735f287
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ jobs:
- name: Build packages
run: yarn run build

- name: Publish packages
# manual switch to latest
run: yarn publish --ignore-scripts --no-git-tag-version --no-commit-hooks --non-interactive --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
Expand All @@ -66,8 +60,13 @@ jobs:
with:
tag_name: ${{ needs.tag.outputs.tag }}
body: ${{ steps.changelog_reader.outputs.changes }}
prerelease: true
prerelease: false
release_name: Release ${{ needs.tag.outputs.tag }}

- name: Publish packages
run: yarn publish --ignore-scripts --no-git-tag-version --no-commit-hooks --non-interactive
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
#in case of failure
- name: Rollback on failure
if: failure()
Expand Down

0 comments on commit 735f287

Please sign in to comment.