Skip to content

Commit 7445ba7

Browse files
committed
chore: try to stop release running after PRs
1 parent 2680f98 commit 7445ba7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
release:
99
name: Release (${{ github.event.workflow_run.head_commit.id }})
10-
if: ${{ github.ref_name == 'main' && github.event.workflow_run.conclusion == 'success' }}
10+
if: ${{ github.event.workflow_run.head_branch == 'main' && github.event.workflow_run.conclusion == 'success' }}
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
@@ -20,15 +20,15 @@ jobs:
2020
node-version: 'lts/*'
2121
registry-url: 'https://registry.npmjs.org'
2222
- name: Install package dependencies
23-
run: yarn install
23+
run: npm install
2424
- name: Build package
25-
run: yarn run build
25+
run: npm run build
2626
- name: list files in dist
2727
run: |
2828
sudo apt-get install tree
2929
tree dist
3030
- name: Install semantic release
31-
run: yarn add -D semantic-release @semantic-release/changelog @semantic-release/git conventional-changelog-conventionalcommits
31+
run: npm install -D semantic-release @semantic-release/changelog @semantic-release/git conventional-changelog-conventionalcommits@7.0.2
3232
- name: Semantic Release
3333
run: npx semantic-release --debug
3434
env:

0 commit comments

Comments
 (0)