Skip to content

Commit f4cd557

Browse files
authored
Update prerelease.yml
1 parent 5355393 commit f4cd557

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/prerelease.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
33

4-
name: Create New Release
4+
name: Create New Pre Release
55

66
on:
77
release:
8-
types: [preleased]
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)