Skip to content

Commit cb7ad0c

Browse files
committed
prepare publish.yaml for publishing
1 parent d48183a commit cb7ad0c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎.github/workflows/publish.yaml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Publish
22
on: workflow_dispatch
33

4+
permissions:
5+
id-token: write # Required for OIDC
6+
contents: read
7+
48
jobs:
59
binaries:
610
name: ${{ matrix.package }}
@@ -27,13 +31,15 @@ jobs:
2731
- uses: actions/setup-node@v4
2832
with:
2933
node-version: 26
34+
registry-url: 'https://registry.npmjs.org'
35+
package-manager-cache: false # never use caching in release builds
3036
- uses: mlugg/setup-zig@v2
3137
- name: Install
3238
run: npm ci --force # https://github.com/npm/cli/issues/6138
3339
- name: Build
3440
run: zig build -Dtarget=${{ matrix.target }} -Doptimize=ReleaseSafe
3541
- name: Publish
36-
run: npm publish --dry-run --workspace ${{ matrix.package }}
42+
run: npm publish --workspace ${{ matrix.package }} --tag next
3743

3844
root:
3945
name: canvas

0 commit comments

Comments
 (0)