Skip to content

Commit 29a11f0

Browse files
committed
build: update workflow
1 parent 5d44c13 commit 29a11f0

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717

18-
- uses: denoland/setup-deno@v1
19-
with:
20-
deno-version: v1.x
21-
22-
- run: |
23-
deno task build
18+
- uses: asdf-vm/actions/install@v2
19+
20+
- run: deno task build
2421

2522
- uses: cycjimmy/semantic-release-action@v3
2623
with:

build/build_npm.ts

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { build, emptyDir } from "https://deno.land/x/dnt@0.26.0/mod.ts";
1+
import { build, emptyDir } from "https://deno.land/x/dnt@0.33.1/mod.ts";
22

3+
// delete previous build
34
await emptyDir("./npm");
45

6+
// build
57
await build({
6-
typeCheck: false,
78
entryPoints: [
89
"./src/index.ts",
910
{
@@ -15,21 +16,10 @@ await build({
1516
outDir: "./npm",
1617
shims: {
1718
deno: true, // for Deno namespace
18-
custom: [{
19-
package: { // for fetch
20-
name: "node-fetch",
21-
version: "~2.6.7",
22-
},
23-
globalNames: [{
24-
name: "fetch",
25-
exportName: "default",
26-
}],
27-
}],
28-
},
29-
mappings: {
19+
undici: true, // for fetch
3020
},
21+
// package.json properties
3122
package: {
32-
// package.json properties
3323
name: "unity-changeset",
3424
version: "0.0.1",
3525
description: "Get/List Unity changeset",

0 commit comments

Comments
 (0)