@@ -15,55 +15,39 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1515
1616jobs :
1717 release :
18- name : Release
18+ name : 🚀 Release
1919 runs-on : ubuntu-latest
2020 steps :
21- - uses : actions/checkout@v4
21+ - name : ⬇️ Checkout repo
22+ uses : actions/checkout@v4
2223 with :
24+ # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
2325 fetch-depth : 0
2426
25- - uses : pnpm/action-setup@v4
27+ - name : 📦 Install pnpm
28+ uses : pnpm/action-setup@v4
2629
27- - uses : actions/setup-node@v4
30+ - name : ⎔ Setup Node.js
31+ uses : actions/setup-node@v4
2832 with :
2933 node-version : 20
3034 cache : ' pnpm'
3135 registry-url : ' https://registry.npmjs.org/'
3236
33- - id : cached-build-artifacts
34- uses : actions/cache@v4
35- with :
36- path : packages/*/dist
37- key : build-artifacts-${{ github.sha }}
38-
39- - id : cache-node-modules
40- uses : actions/cache@v4
41- with :
42- path : |
43- node_modules
44- packages/*/node_modules
45- docs/node_modules
46- key : ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
47- restore-keys : |
48- ${{ runner.os }}-modules-
49-
50- - uses : actions/cache@v4
51- with :
52- path : .turbo
53- key : ${{ runner.os }}-turbo-${{ github.sha }}
54- restore-keys : |
55- ${{ runner.os }}-turbo-
37+ - name : 📦 Install dependencies
38+ run : pnpm install --frozen-lockfile
5639
57- # Always run install to ensure all dependencies are available
58- # This ensures workspace packages like docs have their dependencies
59- - run : pnpm install --frozen-lockfile
40+ - name : 🏗 Build packages
41+ run : pnpm turbo run build
6042
61- - run : pnpm turbo run build
62- if : steps.cached-build-artifacts.outputs.cache-hit != 'true'
43+ - name : 🧪 Run tests
44+ run : pnpm turbo run test
6345
64- - id : changesets
46+ - name : 🦋 Create Release Pull Request or Publish to npm
47+ id : changesets
6548 uses : changesets/action@v1
6649 with :
50+ # This uses our custom publish script that builds before publishing
6751 publish : pnpm changeset-publish
6852 title : " ci(changesets): version packages"
6953 commit : " ci(changesets): version packages"
0 commit comments