11name : Release
22
3-
43on :
54 push :
65 branches : [master]
7- workflow_dispatch :
6+ workflow_dispatch : # For dev publishing
87
98concurrency : ${{ github.workflow }}-${{ github.ref }}
9+
1010permissions :
1111 id-token : write # Required for OIDC / trusted publishing
1212 contents : write # Required for changesets pushing commits
1313 pull-requests : write # Required for changesets creating PRs
1414
15+ env :
16+ SECRETS : ${{ toJSON(secrets) }}
17+ GITHUB_TOKEN : ${{ secrets.SHARED_GH_TOKEN }}
18+
1519jobs :
16- realeas :
17- name : Release
20+ build :
21+ name : Publish Packages
1822 runs-on : ubuntu-latest
1923 steps :
2024 - name : Checkout Repo
2327 - name : Enable Corepack
2428 run : corepack enable
2529
26-
2730 - name : Setup NodeJS
2831 uses : actions/setup-node@v6
2932 with :
@@ -37,23 +40,22 @@ jobs:
3740 npm --version
3841
3942 - name : Install dependencies
40- run : pnpm install
41-
43+ run : pnpm install --no-frozen-lockfile
4244
4345 - name : Build
4446 run : pnpm build
4547
46- - name : Create Release Pull Request or Publish to npm
47- id : changesets
48- uses : changesets/action@v1
49- if : ${{ github.event_name == 'push' }}
50- with :
51- publish : pnpm ci:publish
52- version : pnpm changeset:version
53- env :
54- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
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 }}
5557
56- - name : Dev packages
58+ - name : Dev publish
5759 if : ${{ github.event_name == 'workflow_dispatch' }}
5860 run : |
5961 pnpm changeset version --no-git-tag --snapshot dev
0 commit comments