Skip to content

Commit e261354

Browse files
committed
chore: Set prepublishOnly script
1 parent d44ebc9 commit e261354

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/release-please.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const releaseJob = setupJob("release", {
3838
contents: "read",
3939
},
4040
})
41-
.run("bun run build:package")
4241
.run(
4342
`
4443
(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# DO NOT EDIT THIS FILE
22
# This file is automatically generated by ghats (https://www.npmjs.com/package/ghats)
33
# Edit the workflow in .github/workflows/release-please.ts instead, and run `ghats build` to update this file.
4-
{"name":"Release Please","on":{"push":{"branches":["main"]}},"permissions":{},"concurrency":{"group":"${{ github.workflow }}-${{ github.ref }}","cancel-in-progress":false},"jobs":{"releasePlease":{"runs-on":"ubuntu-latest","permissions":{"contents":"write","pull-requests":"write"},"timeout-minutes":10,"outputs":{"shouldRelease":"${{ steps.releasePlease.outputs.release_created }}"},"steps":[{"id":"releasePlease","with":{"release-type":"node"},"uses":"googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445"}]},"release":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":10,"needs":"releasePlease","if":"${{ needs.releasePlease.outputs.shouldRelease }}","steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@7a111ead46986ccad89a74ad013ba2a7c08c9e67"},{"with":{"path":"~/.bun/install/cache","key":"${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}","restore-keys":"${{ runner.os }}-bun-"},"uses":"actions/cache@5a3ec84eff668545956fd18022155c47e93e2684"},{"run":"bun install --frozen-lockfile"},{"run":"bun run build:package"},{"run":"\n(\n # shellcheck disable=SC2016\n echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}'\n echo 'registry=https://registry.npmjs.org'\n) > .npmrc\n"},{"env":{"NODE_AUTH_TOKEN":"${{ secrets.NPM_TOKEN }}"},"run":"npm publish"}]}}}
4+
{"name":"Release Please","on":{"push":{"branches":["main"]}},"permissions":{},"concurrency":{"group":"${{ github.workflow }}-${{ github.ref }}","cancel-in-progress":false},"jobs":{"releasePlease":{"runs-on":"ubuntu-latest","permissions":{"contents":"write","pull-requests":"write"},"timeout-minutes":10,"outputs":{"shouldRelease":"${{ steps.releasePlease.outputs.release_created }}"},"steps":[{"id":"releasePlease","with":{"release-type":"node"},"uses":"googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445"}]},"release":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":10,"needs":"releasePlease","if":"${{ needs.releasePlease.outputs.shouldRelease }}","steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@7a111ead46986ccad89a74ad013ba2a7c08c9e67"},{"with":{"path":"~/.bun/install/cache","key":"${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}","restore-keys":"${{ runner.os }}-bun-"},"uses":"actions/cache@5a3ec84eff668545956fd18022155c47e93e2684"},{"run":"bun install --frozen-lockfile"},{"run":"\n(\n # shellcheck disable=SC2016\n echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}'\n echo 'registry=https://registry.npmjs.org'\n) > .npmrc\n"},{"env":{"NODE_AUTH_TOKEN":"${{ secrets.NPM_TOKEN }}"},"run":"npm publish"}]}}}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"fmt": "biome check --write --unsafe .",
2626
"gha:install": "ghats install",
2727
"gha:build": "ghats build",
28-
"build:package": "bun run tasks/build.ts"
28+
"build:package": "bun run tasks/build.ts",
29+
"prepublishOnly": "bun run build:package"
2930
},
3031
"dependencies": {
3132
"@swc-node/register": "1.10.10",

0 commit comments

Comments
 (0)