From cceac35411a9a13b3bf82416f867784792cf76f9 Mon Sep 17 00:00:00 2001 From: Ezra Brooks Date: Mon, 17 Nov 2025 10:32:44 -0700 Subject: [PATCH] Create `next` tag in NPM when prerelease --- .github/workflows/cd.yml | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index dccff57eb..0dd94da77 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -30,3 +30,7 @@ jobs: - run: npm ci - run: npm run build - run: npm publish + if: "!github.event.release.prerelease" + # npm requires explicitly specifying a "tag" like `next` if the semantic version is a prerelease like `2.0.0-alpha1` + - run: npm publish --tag next + if: github.event.release.prerelease diff --git a/package.json b/package.json index 28f436e71..e882cfd7d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "roslib", "homepage": "https://robotwebtools.github.io", "description": "The standard ROS Javascript Library", - "version": "2.0.0-alpha3", + "version": "2.0.0-alpha4", "license": "BSD-2-Clause", "files": [ "dist"