-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (59 loc) · 1.88 KB
/
Copy pathrelease-ducjs.yml
File metadata and controls
70 lines (59 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Release ducjs
on:
workflow_call:
workflow_dispatch:
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
jobs:
release_ducjs:
runs-on: ubuntu-latest
concurrency:
group: release-ducjs
cancel-in-progress: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref_name }}
persist-credentials: true
- name: Set Git User
run: |
git config user.name "GitHub Action"
git config user.email "action@github.com"
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24.x
registry-url: 'https://registry.npmjs.org'
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "latest"
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Install wasm-pack (pinned 0.14.x)
run: cargo install wasm-pack --version 0.14.0 --locked --force
- name: Install deps
run: bun install
- name: Build
run: bun ducjs:build
- name: Prepare workspace dependencies for publish
run: node scripts/fix-workspace-deps.mjs packages/ducjs/package.json
- name: Setup release environment
id: setup-release-environment
uses: ./.github/actions/simulate-main-environment
with:
current-branch: ${{ github.ref_name }}
package-name: ducjs
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./packages/ducjs
run: npx semantic-release ${{ steps.setup-release-environment.outputs.release-mode }}