Skip to content

Commit 1c28793

Browse files
committed
release: v0.19.3-pre.4
Improve error handling with Hono HttpException in adapters.
1 parent 193a132 commit 1c28793

File tree

11 files changed

+31
-22
lines changed

11 files changed

+31
-22
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,26 @@ jobs:
1616
permissions:
1717
contents: read
1818
id-token: write
19+
environment:
20+
name: production
21+
url: ${{ steps.gh-release.outputs.url }}
1922
steps:
2023
- name: Checkout
2124
uses: actions/checkout@v4
2225

23-
- name: Get Release message
26+
- name: Get Release data
27+
id: get_release_data
2428
if: github.ref_type == 'tag'
2529
run: |
2630
MESSAGE=$(git tag -l --format='%(contents)' "${GITHUB_REF_NAME}")
2731
echo "$MESSAGE" >> release-message.txt
2832
cat release-message.txt
33+
34+
NPM_TAG="latest"
35+
if [[ "${GITHUB_REF_NAME}" == *-* ]]; then
36+
NPM_TAG="next"
37+
fi
38+
echo "NPM_TAG=${NPM_TAG}" >> $GITHUB_ENV
2939
env:
3040
GITHUB_REF_NAME: ${{ github.ref_name }}
3141

@@ -64,22 +74,23 @@ jobs:
6474
working-directory: ./out
6575
run: npx turbo verify
6676

77+
- name: Create GitHub Release
78+
if: github.ref_type == 'tag'
79+
id: gh-release
80+
uses: softprops/action-gh-release@v2
81+
with:
82+
body_path: release-message.txt
83+
make_latest: ${{ steps.get_release_data.outputs.NPM_TAG == 'latest' }}
84+
6785
- name: Publish on JSR - Core
6886
working-directory: ./out/packages/core
6987
continue-on-error: true
7088
run: npx -y jsr publish --token ${{ secrets.JSR_API_TOKEN }} --allow-slow-types
7189

7290
- name: Publish on NPM
7391
working-directory: ./out
74-
run: yarn publish:npm
92+
run: |
93+
NPM_TAG="${{ steps.get_release_data.outputs.NPM_TAG || 'latest' }}"
94+
yarn workspaces foreach -A --no-private npm publish --tolerate-republish --tag $NPM_TAG
7595
env:
7696
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
77-
78-
- name: Create GitHub Release
79-
if: github.ref_type == 'tag'
80-
uses: softprops/action-gh-release@v2
81-
with:
82-
body_path: release-message.txt
83-
make_latest: false
84-
env:
85-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
"fmt": "turbo fmt",
2424
"functions": "yarn workspace azure-functions-app dev",
2525
"lint": "turbo lint",
26-
"publish:jsr": "turbo publish:jsr",
27-
"publish:npm": "yarn workspaces foreach -A --no-private npm publish --tolerate-republish",
2826
"release": "node ./scripts/release.ts",
2927
"server": "NODE_ENV=development deno serve -REW --unstable-sloppy-imports --watch ./scripts/server.ts",
3028
"test": "turbo test",

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.3",
3+
"version": "0.19.3-pre.4",
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.3",
3+
"version": "0.19.3-pre.4",
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.3",
3+
"version": "0.19.3-pre.4",
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.3",
4+
"version": "0.19.3-pre.4",
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.3",
3+
"version": "0.19.3-pre.4",
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.3",
3+
"version": "0.19.3-pre.4",
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.3",
3+
"version": "0.19.3-pre.4",
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.3",
3+
"version": "0.19.3-pre.4",
44
"type": "module",
55
"description": "StoryBooker Adapter for interacting with SQL services.",
66
"author": {

0 commit comments

Comments
 (0)