Skip to content

Commit 5ccf141

Browse files
fix: update CI
1 parent f2ada0a commit 5ccf141

5 files changed

Lines changed: 75 additions & 119 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,42 @@ on:
44
push:
55
tags:
66
- "*"
7-
workflow_dispatch:
7+
8+
permissions:
9+
id-token: write
10+
contents: read
811

912
concurrency: ${{ github.workflow }}-${{ github.ref }}
1013

1114
jobs:
1215
release:
1316
name: Release
1417
runs-on: ubuntu-latest
15-
permissions:
16-
id-token: write
18+
environment: Publish
1719
steps:
1820
- name: Checkout Repo
19-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2022
- uses: denoland/setup-deno@v2
2123
with:
22-
deno-version: "v2.x"
24+
deno-version: "latest"
25+
2326
- name: Get tag version
2427
if: startsWith(github.ref, 'refs/tags/')
2528
id: get_tag_version
2629
run: echo TAG_VERSION=${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT
27-
- uses: actions/setup-node@v4
30+
31+
- uses: actions/setup-node@v6
2832
with:
29-
node-version: "22"
30-
registry-url: "https://registry.npmjs.org"
31-
- uses: pnpm/action-setup@v4
33+
node-version: '24'
34+
registry-url: 'https://registry.npmjs.org'
35+
package-manager-cache: false # never use caching in release builds
36+
37+
- uses: pnpm/action-setup@v6
3238
with:
33-
version: latest
39+
version: 11
40+
3441
- name: npm build
3542
run: deno task npm ${{steps.get_tag_version.outputs.TAG_VERSION}}
3643
- name: npm publish
3744
if: startsWith(github.ref, 'refs/tags/')
38-
env:
39-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40-
run: cd npm && npm publish --provenance
45+
run: cd npm && npm publish --provenance --access public

deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"exclude": ["npm"],
88
"imports": {
9-
"@deno/dnt": "jsr:@deno/dnt@^0.41.3",
9+
"@deno/dnt": "jsr:@deno/dnt@^0.42.3",
1010
"@std/assert": "jsr:@std/assert@^0.225.3"
1111
}
1212
}

deno.lock

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

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
biome
2424
deno
2525
nodejs_24
26+
pnpm
2627
];
2728
};
2829
};

scripts/build_npm.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,5 @@ await build({
5555
async postBuild() {
5656
await Deno.copyFile("LICENSE", "npm/LICENSE");
5757
await Deno.copyFile("README.md", "npm/README.md");
58-
using npmIgnoreFile = await Deno.open("npm/.npmignore", { append: true });
59-
const data = new TextEncoder().encode("deps/" + "\n" + "*.map" + "\n");
60-
npmIgnoreFile.write(data);
6158
},
6259
});

0 commit comments

Comments
 (0)