Skip to content

Commit 4e48695

Browse files
committed
chore: fix up semantic release
1 parent e7bec8d commit 4e48695

File tree

3 files changed

+42
-277
lines changed

3 files changed

+42
-277
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
build:
3737
runs-on: ubuntu-latest
3838
steps:
39-
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
40-
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
39+
- uses: actions/checkout@v3
40+
- uses: actions/setup-node@v3
4141
with:
4242
cache: npm
4343
node-version: lts/*
@@ -92,16 +92,10 @@ jobs:
9292
node-version: lts/*
9393
- run: npm ci
9494
# Branches that will release new versions are defined in .releaserc.json
95-
- run: npx semantic-release
95+
- run: semantic-release
9696
# Don't allow interrupting the release step if the job is cancelled, as it can lead to an inconsistent state
9797
# e.g. git tags were pushed but it exited before `npm publish`
9898
if: always()
9999
env:
100100
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101101
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
102-
# Re-run semantic release with rich logs if it failed to publish for easier debugging
103-
- run: npx semantic-release --dry-run --debug
104-
if: failure()
105-
env:
106-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107-
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)