Skip to content

Commit b936d82

Browse files
committed
Release v0.19.3-pre.7
Mark prelease versions correctly on NPM.
1 parent fb64f78 commit b936d82

File tree

11 files changed

+44
-40
lines changed

11 files changed

+44
-40
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,6 @@ jobs:
2020
- name: Checkout
2121
uses: actions/checkout@v4
2222

23-
- name: Get Release data
24-
id: get_release_data
25-
if: github.ref_type == 'tag'
26-
run: |
27-
MESSAGE=$(git tag -l --format='%(contents)' "${GITHUB_REF_NAME}")
28-
echo "$MESSAGE" >> release-message.txt
29-
cat release-message.txt
30-
31-
NPM_TAG="latest"
32-
if [[ "${GITHUB_REF_NAME}" == *-* ]]; then
33-
NPM_TAG="next"
34-
fi
35-
echo "NPM_TAG=${NPM_TAG}" >> $GITHUB_ENV
36-
env:
37-
GITHUB_REF_NAME: ${{ github.ref_name }}
38-
3923
- name: Setup node
4024
uses: actions/setup-node@v4
4125
with:
@@ -71,23 +55,41 @@ jobs:
7155
working-directory: ./out
7256
run: npx turbo verify
7357

74-
- name: Create GitHub Release
58+
- name: Get Release data
59+
id: get_release_data
7560
if: github.ref_type == 'tag'
76-
id: gh-release
77-
uses: softprops/action-gh-release@v2
78-
with:
79-
body_path: release-message.txt
80-
make_latest: ${{ steps.get_release_data.outputs.NPM_TAG == 'latest' }}
61+
run: |
62+
MESSAGE=$(git tag -l --format='%(contents)' "${GITHUB_REF_NAME}")
63+
echo "$MESSAGE" >> release-message.txt
64+
cat release-message.txt
65+
66+
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}
70+
fi
71+
echo "NPM_TAG=${NPM_TAG}" >> $GITHUB_ENV
72+
env:
73+
GITHUB_REF_NAME: ${{ github.ref_name }}
8174

8275
- name: Publish on JSR - Core
8376
working-directory: ./out/packages/core
8477
continue-on-error: true
85-
run: npx -y jsr publish --token ${{ secrets.JSR_API_TOKEN }} --allow-slow-types
78+
run: npx -y jsr publish --token ${{ secrets.JSR_API_TOKEN }} --allow-slow-types --allow-dirty
8679

8780
- name: Publish on NPM
8881
working-directory: ./out
8982
run: |
90-
NPM_TAG="${{ steps.get_release_data.outputs.NPM_TAG || 'latest' }}"
91-
yarn workspaces foreach -A --no-private npm publish --tolerate-republish --tag $NPM_TAG
83+
NPM_TAG=${{ steps.get_release_data.outputs.NPM_TAG }}
84+
echo "Publishing with tag: $NPM_TAG"
85+
yarn workspaces foreach -A --no-private npm publish --tolerate-republish --tag ${NPM_TAG:-latest}
9286
env:
9387
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
88+
89+
- name: Create GitHub Release
90+
if: github.ref_type == 'tag'
91+
id: gh-release
92+
uses: softprops/action-gh-release@v2
93+
with:
94+
body_path: release-message.txt
95+
make_latest: ${{ steps.get_release_data.outputs.NPM_TAG == 'latest' }}

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.6",
3+
"version": "0.19.3-pre.7",
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.6",
3+
"version": "0.19.3-pre.7",
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.6",
3+
"version": "0.19.3-pre.7",
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.6",
4+
"version": "0.19.3-pre.7",
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.6",
3+
"version": "0.19.3-pre.7",
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.6",
3+
"version": "0.19.3-pre.7",
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.6",
3+
"version": "0.19.3-pre.7",
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.6",
3+
"version": "0.19.3-pre.7",
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.6",
3+
"version": "0.19.3-pre.7",
44
"type": "module",
55
"description": "Basic UI for Storybooker app",
66
"author": {

0 commit comments

Comments
 (0)