-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (48 loc) · 1.59 KB
/
publish.yml
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
name: '📚 Publish'
on:
push:
branches:
- 'main'
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
name: ☁️ Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'
- name: 🔻 Install pnpm
run: npm i pnpm@latest -g
- name: 🗒️ Setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: ✨ Install dependencies
run: pnpm install --frozen-lockfile
- name: ✨ Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: 🙏 Run Forge Build
run: |
forge --version
forge build --sizes
id: build
- name: 📦 Build package
run: pnpm build
- name: 🚀 Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: pnpm changeset publish
commit: 'feat: version release'
title: 'feat: version release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}