Skip to content

Commit 6060d6a

Browse files
authored
Create next tag in NPM when prerelease (#1087)
1 parent de1979b commit 6060d6a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/cd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ jobs:
3030
- run: npm ci
3131
- run: npm run build
3232
- run: npm publish
33+
if: "!github.event.release.prerelease"
34+
# npm requires explicitly specifying a "tag" like `next` if the semantic version is a prerelease like `2.0.0-alpha1`
35+
- run: npm publish --tag next
36+
if: github.event.release.prerelease

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "roslib",
33
"homepage": "https://robotwebtools.github.io",
44
"description": "The standard ROS Javascript Library",
5-
"version": "2.0.0-alpha3",
5+
"version": "2.0.0-alpha4",
66
"license": "BSD-2-Clause",
77
"files": [
88
"dist"

0 commit comments

Comments
 (0)