File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 92
92
path : prebuilds/*
93
93
94
94
update-version-and-release :
95
- needs : build
95
+ needs : [compute-shasum, build]
96
+ if : ${{ needs.compute-shasum.result == 'failure' && needs.build.result == 'success' }}
96
97
runs-on : ubuntu-latest
97
-
98
98
steps :
99
99
- name : Checkout Repository
100
100
uses : actions/checkout@v4
@@ -135,6 +135,7 @@ jobs:
135
135
merge-multiple : true
136
136
137
137
- name : Create GitHub Release
138
+ if : github.ref == 'refs/heads/main'
138
139
uses : softprops/action-gh-release@v2
139
140
with :
140
141
tag_name : " v${{ env.new_version }}"
@@ -152,12 +153,14 @@ jobs:
152
153
.last-shasum
153
154
154
155
- name : Publish to npm
156
+ if : github.ref == 'refs/heads/main'
155
157
uses : actions/setup-node@v4
156
158
with :
157
159
node-version : ${{ env.NODE_VERSION }}
158
160
registry-url : " https://registry.npmjs.org/"
159
161
160
162
- name : Publish Package
163
+ if : github.ref == 'refs/heads/main'
161
164
run : npm publish
162
165
env :
163
166
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments