Skip to content

Commit 663669c

Browse files
committed
refactor: add build script for bundling
1 parent f61c059 commit 663669c

File tree

5 files changed

+38292
-2
lines changed

5 files changed

+38292
-2
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,19 @@ jobs:
9797

9898
- name: Check types
9999
run: deno check src/main.ts
100+
101+
build-diff:
102+
runs-on: ubuntu-latest
103+
steps:
104+
- uses: actions/checkout@v4
105+
106+
- name: Setup Deno
107+
uses: ./
108+
with:
109+
deno-version: "rc"
110+
111+
- name: Build code
112+
run: deno run -A scripts/build.ts
113+
114+
- name: Assert no git changes
115+
run: git diff --quiet

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ outputs:
2020
description: "The release channel of the installed version."
2121
runs:
2222
using: "node20"
23-
main: "main.mjs"
23+
main: "dist/main.mjs"

deno.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
{
22
"lock": false,
3-
"nodeModulesDir": "none",
3+
"nodeModulesDir": "auto",
44
"license": "MIT",
55
"compilerOptions": {
66
"lib": ["esnext"]
77
},
8+
"exclude": [
9+
"dist"
10+
],
11+
"tasks": {
12+
"build": "deno run -A scripts/build.ts"
13+
},
814
"imports": {
915
"@actions/core": "npm:@actions/core@^1.11.1",
1016
"@actions/tool-cache": "npm:@actions/tool-cache@^2.0.2",

0 commit comments

Comments
 (0)