Skip to content

Commit c2f12b4

Browse files
committed
Mark prelease versions correctly on NPM.
1 parent b936d82 commit c2f12b4

File tree

11 files changed

+18
-21
lines changed

11 files changed

+18
-21
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@ jobs:
6464
cat release-message.txt
6565
6666
NPM_TAG="latest"
67-
if [[ "${GITHUB_REF_NAME}" == *-* ]]; then
68-
prerelease=$(echo "$GITHUB_REF_NAME" | cut -d'-' -f2 | cut -d'.' -f1)
69-
NPM_TAG=${prerelease:-next}
67+
if [[ $GITHUB_REF_NAME == *"-"* ]]; then
68+
echo "Working on a prerelease version..."
69+
TAG=$(echo "$GITHUB_REF_NAME" | cut -d'-' -f2 | cut -d'.' -f1)
70+
NPM_TAG=${TAG:-next}
7071
fi
72+
echo "NPM_TAG=${NPM_TAG}"
7173
echo "NPM_TAG=${NPM_TAG}" >> $GITHUB_ENV
7274
env:
7375
GITHUB_REF_NAME: ${{ github.ref_name }}
@@ -80,7 +82,7 @@ jobs:
8082
- name: Publish on NPM
8183
working-directory: ./out
8284
run: |
83-
NPM_TAG=${{ steps.get_release_data.outputs.NPM_TAG }}
85+
NPM_TAG="${{ steps.get_release_data.outputs.NPM_TAG }}"
8486
echo "Publishing with tag: $NPM_TAG"
8587
yarn workspaces foreach -A --no-private npm publish --tolerate-republish --tag ${NPM_TAG:-latest}
8688
env:

packages/aws/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybooker/aws",
3-
"version": "0.19.3-pre.7",
3+
"version": "0.19.3-pre.8",
44
"type": "module",
55
"description": "StoryBooker Adapter for interacting with AWS services.",
66
"author": {

packages/azure/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybooker/azure",
3-
"version": "0.19.3-pre.7",
3+
"version": "0.19.3-pre.8",
44
"type": "module",
55
"description": "StoryBooker Adapter for interacting with Azure services.",
66
"author": {

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "storybooker",
3-
"version": "0.19.3-pre.7",
3+
"version": "0.19.3-pre.8",
44
"type": "module",
55
"bin": "./dist/index.js",
66
"description": "Storybooker CLI for uploading builds and files.",

packages/core/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json",
33
"name": "@storybooker/core",
4-
"version": "0.19.3-pre.7",
4+
"version": "0.19.3-pre.8",
55
"license": "MIT",
66
"publish": {
77
"include": [

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybooker/core",
3-
"version": "0.19.3-pre.7",
3+
"version": "0.19.3-pre.8",
44
"type": "module",
55
"description": "Storybooker platform agnostic router core.",
66
"author": {

packages/gcp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybooker/gcp",
3-
"version": "0.19.3-pre.7",
3+
"version": "0.19.3-pre.8",
44
"type": "module",
55
"description": "StoryBooker Adapter for interacting with GCP services.",
66
"author": {

packages/redis/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybooker/redis",
3-
"version": "0.19.3-pre.7",
3+
"version": "0.19.3-pre.8",
44
"type": "module",
55
"description": "StoryBooker Adapter for interacting with Redis services.",
66
"author": {

packages/sql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybooker/sql",
3-
"version": "0.19.3-pre.7",
3+
"version": "0.19.3-pre.8",
44
"type": "module",
55
"description": "StoryBooker Adapter for interacting with SQL services.",
66
"author": {

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybooker/ui",
3-
"version": "0.19.3-pre.7",
3+
"version": "0.19.3-pre.8",
44
"type": "module",
55
"description": "Basic UI for Storybooker app",
66
"author": {

0 commit comments

Comments
 (0)