This repository was archived by the owner on Apr 19, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (68 loc) · 2.12 KB
/
publish.yml
File metadata and controls
85 lines (68 loc) · 2.12 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Publish
on:
pull_request_target:
types:
- closed
permissions:
contents: read
concurrency:
group: publish-${{ github.event.pull_request.number }}
cancel-in-progress: false
jobs:
verify:
name: Verify Release Commit
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' && startsWith(github.event.pull_request.head.ref, 'changeset-release/')
runs-on: ubuntu-latest
steps:
- name: Checkout merged release commit
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Setup pnpm
uses: pnpm/action-setup@v4.2.0
- name: Setup Node.js
uses: actions/setup-node@v6.1.0
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Typecheck workspaces
run: pnpm -r --if-present typecheck
- name: Build publishable package
run: pnpm --filter @abstract-foundation/mpp build
- name: Setup Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Install Solidity dependencies
working-directory: packages/contracts
run: forge soldeer install
- name: Run Foundry tests
working-directory: packages/contracts
run: forge test -v
publish:
name: Publish to npm
needs: verify
runs-on: ubuntu-latest
environment:
name: npm
url: https://www.npmjs.com/package/@abstract-foundation/mpp
permissions:
contents: read
id-token: write
steps:
- name: Checkout merged release commit
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Setup pnpm
uses: pnpm/action-setup@v4.2.0
- name: Setup Node.js
uses: actions/setup-node@v6.1.0
with:
node-version: 24
cache: pnpm
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Publish packages
run: pnpm release