Skip to content

Commit b903e2d

Browse files
committed
Fix Release Github Action
1 parent c20c9f3 commit b903e2d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v2
22-
- name: machine echo github
23-
env: { CONTENT: '${{ toJson(github) }}' }
24-
run: 'echo $CONTENT'
2522
- name: Install Node.js
2623
uses: actions/setup-node@v2
2724
with:
@@ -103,7 +100,7 @@ jobs:
103100
run: yarn nx run extension-integrationtest:integrationtest --configuration=test
104101

105102
snapshot:
106-
if: github.event_name != 'release'
103+
if: github.event_name != 'release' || (github.event_name == 'release' && github.event.release.prerelease == true)
107104
needs:
108105
- unit-test
109106
- integration-test
@@ -156,7 +153,7 @@ jobs:
156153
retention-days: 10
157154

158155
publish-marketplace:
159-
if: github.event_name == 'release'
156+
if: github.event_name == 'release' && github.event.release.prerelease == false
160157
needs:
161158
- unit-test
162159
- lint

0 commit comments

Comments
 (0)