Skip to content

Commit f1cfdf6

Browse files
committed
ci: handle prerelease tag [skip_ci]
1 parent d23ca94 commit f1cfdf6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/npm_release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
branches:
44
- main
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
env:
99
NPM_TAG: "next"
@@ -13,7 +13,6 @@ env:
1313
ANDROID_ABI: x86_64
1414
NDK_ARCH: darwin-x86_64
1515

16-
1716
jobs:
1817
build:
1918
name: Build
@@ -131,16 +130,16 @@ jobs:
131130
- build
132131
- test
133132
permissions:
134-
contents: read
135-
id-token: write
133+
contents: read
134+
id-token: write
136135
env:
137136
NPM_VERSION: ${{needs.build.outputs.npm_version}}
138137
NPM_TAG: ${{needs.build.outputs.npm_tag}}
139138
steps:
140139
- uses: actions/setup-node@v3
141140
with:
142141
node-version: 18
143-
registry-url: 'https://registry.npmjs.org'
142+
registry-url: "https://registry.npmjs.org"
144143
- uses: actions/download-artifact@v3
145144
with:
146145
name: npm-package
@@ -181,3 +180,4 @@ jobs:
181180
with:
182181
artifacts: "dist/nativescript-android-*.tgz"
183182
bodyFile: "body.md"
183+
prerelease: ${{needs.build.outputs.npm_tag != 'latest'}}

0 commit comments

Comments
 (0)