Skip to content

Commit 35ee741

Browse files
committed
Bundle action with tsup and bump to v1.0.1
1 parent 515a024 commit 35ee741

4 files changed

Lines changed: 91 additions & 5 deletions

File tree

dist/index.js

Lines changed: 70 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "wrangler-version-deploy-action-with-metadata",
3-
"version": "0.1.0",
3+
"version": "1.0.1",
44
"private": false,
55
"description": "A GitHub Action to deploy via Wrangler v4 and expose deployment metadata, with customizable messages and tags.",
66
"main": "dist/index.js",
77
"scripts": {
8-
"build": "tsup src/index.ts --format=cjs --minify --sourcemap --out-dir dist",
8+
"build": "tsup",
99
"prepare": "pnpm build",
1010
"lint": "echo \"no lint setup for this package yet\""
1111
},

tsup.config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { defineConfig } from "tsup";
2+
3+
export default defineConfig({
4+
entry: ["src/index.ts"],
5+
format: ["cjs"],
6+
platform: "node",
7+
target: "node20",
8+
outDir: "dist",
9+
sourcemap: true,
10+
minify: true,
11+
bundle: true,
12+
splitting: false,
13+
dts: false,
14+
15+
// Ensure dependencies used by the GitHub Action are bundled into dist/index.js
16+
// so the published action tarball is fully self-contained.
17+
noExternal: ["@actions/core", "@actions/exec"],
18+
});

0 commit comments

Comments
 (0)