Skip to content

Commit 09c4d37

Browse files
committed
stuff
1 parent 6bdd03f commit 09c4d37

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@ jobs:
3737
# fetch-depth 0 needed by GitHub Release
3838

3939
- name: publish to NPM
40-
run: npm publish --access=public
40+
run: |
41+
VERSION=$(node -e 'console.log(require("./package.json").version)')
42+
if printf '%s' "$VERSION" | grep -q -- '-'; then
43+
# prerelease versions get the "next" tag
44+
npm publish --access=public --tag=next
45+
else
46+
npm publish --access=public
47+
fi
4148
4249
publish-gpr:
4350
needs: build

0 commit comments

Comments
 (0)