File tree Expand file tree Collapse file tree 4 files changed +65
-121
lines changed
Expand file tree Collapse file tree 4 files changed +65
-121
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches : [master]
6+ workflow_dispatch : # For dev publishing
7+
8+ concurrency : ${{ github.workflow }}-${{ github.ref }}
9+
10+ permissions :
11+ id-token : write # Required for OIDC / trusted publishing
12+ contents : write # Required for changesets pushing commits
13+ pull-requests : write # Required for changesets creating PRs
14+
15+ env :
16+ SECRETS : ${{ toJSON(secrets) }}
17+ GITHUB_TOKEN : ${{ secrets.SHARED_GH_TOKEN }}
18+
19+ jobs :
20+ build :
21+ name : Publish Packages
22+ runs-on : ubuntu-latest
23+ steps :
24+ - name : Checkout Repo
25+ uses : actions/checkout@v5
26+
27+ - name : Enable Corepack
28+ run : corepack enable
29+
30+ - name : Setup NodeJS
31+ uses : actions/setup-node@v6
32+ with :
33+ node-version-file : " .nvmrc"
34+ cache : pnpm
35+
36+
37+ - name : Update npm
38+ run : |
39+ npm install -g npm@latest
40+ npm --version
41+
42+ - name : Install dependencies
43+ run : pnpm install --no-frozen-lockfile
44+
45+ - name : Build
46+ run : pnpm build
47+
48+ # - name: Create Release Pull Request or Publish to npm
49+ # id: changesets
50+ # uses: changesets/action@v1
51+ # if: ${{ github.event_name == 'push' }}
52+ # with:
53+ # version: pnpm ci:version
54+ # publish: pnpm ci:publish
55+ # env:
56+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
58+ - name : Dev publish
59+ if : ${{ github.event_name == 'workflow_dispatch' }}
60+ run : |
61+ pnpm changeset version --no-git-tag --snapshot dev
62+ pnpm changeset publish --tag dev
63+ env :
64+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 2626 - name : Setup NodeJS
2727 uses : actions/setup-node@v4
2828 with :
29- node-version : 22.16
29+ node-version-file : ' .nvmrc '
3030
3131 - uses : pnpm/action-setup@v4
3232 name : Install pnpm
You can’t perform that action at this time.
0 commit comments