Skip to content

Commit 4de0a3b

Browse files
authored
Merge pull request #1596 from o1-labs/chore/release-on-main-only
Trigger artifacts release jobs only on merge into the `main` branch.
2 parents cd428b6 + b292c69 commit 4de0a3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
retention-days: 30
7979

8080
Release-on-NPM:
81+
if: github.ref == 'refs/heads/main'
8182
timeout-minutes: 180
8283
runs-on: ubuntu-latest
8384
needs: [Build-And-Test-Server, Build-And-Test-Web]
@@ -95,13 +96,13 @@ jobs:
9596
npm run build
9697
- name: Publish to NPM if version has changed
9798
uses: JS-DevTools/npm-publish@v1
98-
if: github.ref == 'refs/heads/main'
9999
with:
100100
token: ${{ secrets.NPM_TOKEN }}
101101
env:
102102
INPUT_TOKEN: ${{ secrets.NPM_TOKEN }}
103103

104104
Release-mina-signer-on-NPM:
105+
if: github.ref == 'refs/heads/main'
105106
timeout-minutes: 180
106107
runs-on: ubuntu-latest
107108
needs: [Build-And-Test-Server, Build-And-Test-Web]
@@ -121,7 +122,6 @@ jobs:
121122
npm run prepublishOnly
122123
- name: Publish to NPM if version has changed
123124
uses: JS-DevTools/npm-publish@v1
124-
if: github.ref == 'refs/heads/main'
125125
with:
126126
token: ${{ secrets.NPM_TOKEN }}
127127
package: './src/mina-signer/package.json'

0 commit comments

Comments
 (0)