Skip to content

Commit 84360b8

Browse files
committed
stuff
1 parent 51aa9e6 commit 84360b8

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.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

.release

Submodule .release updated 1 file

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nictool/api",
3-
"version": "3.0-alpha.9",
3+
"version": "3.0.0-alpha.9",
44
"description": "NicTool API",
55
"main": "index.js",
66
"type": "module",

0 commit comments

Comments
 (0)