Skip to content

Commit 5355393

Browse files
authored
Update release.yml
1 parent 7602bc8 commit 5355393

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ name: Create New Release
55

66
on:
77
release:
8-
types: [released]
8+
types: [created]
99

1010
jobs:
1111
build:
12+
if: "!github.event.release.prerelease"
1213
runs-on: ubuntu-latest
1314
steps:
1415
- uses: actions/checkout@v2
@@ -20,6 +21,7 @@ jobs:
2021
- run: npm test
2122

2223
publish-npm:
24+
if: "!github.event.release.prerelease"
2325
needs: build
2426
runs-on: ubuntu-latest
2527
steps:
@@ -37,6 +39,7 @@ jobs:
3739
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3840

3941
publish-gpr:
42+
if: "!github.event.release.prerelease"
4043
needs: build
4144
runs-on: ubuntu-latest
4245
steps:

0 commit comments

Comments
 (0)