File tree Expand file tree Collapse file tree 2 files changed +13
-40
lines changed Expand file tree Collapse file tree 2 files changed +13
-40
lines changed Original file line number Diff line number Diff line change 33 push :
44 branches :
55 - main
6- # allow other workflows to call this one (for snapshots)
7- workflow_call :
6+ workflow_dispatch :
87 inputs :
98 branch :
10- description : ' Branch or ref to publish from'
9+ description : ' Branch/ ref to publish from'
1110 required : false
12- type : string
1311 default : ' main'
12+ type : string
1413 dist_tag :
1514 description : ' npm dist-tag'
1615 required : false
17- type : string
1816 default : ' beta'
17+ type : string
1918 prerelease :
20- description : ' changesets prerelease tag (e.g., beta, canary)'
19+ description : ' changesets prerelease tag (beta/ canary)'
2120 required : false
22- type : string
2321 default : ' beta'
22+ type : string
2423 access :
2524 description : ' npm access'
2625 required : false
27- type : string
2826 default : ' public'
29-
27+ type : string
3028env :
3129 NX_CLOUD_ENCRYPTION_KEY : ${{ secrets.NX_CLOUD_ENCRYPTION_KEY }}
3230 NX_CLOUD_ACCESS_TOKEN : ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
5755 with :
5856 node-version-file : ' .node-version'
5957 cache : ' pnpm'
58+ registry-url : ' https://registry.npmjs.org'
6059
6160 - run : pnpm install --frozen-lockfile
6261
@@ -156,13 +155,12 @@ jobs:
156155 path : previous_sizes.json
157156 retention-days : 30
158157
159- # --- new reusable job used by the snapshot wrapper ---
160- trusted-publish :
161- if : ${{ github.event_name != 'push' }}
162- name : Trusted Snapshot Publish
158+ snapshot :
159+ if : ${{ github.event_name == 'workflow_dispatch' }}
160+ name : Publish Snapshots
163161 permissions :
164- contents : write # read+write repo (okay for artifacts/logs)
165- id-token : write # REQUIRED: OIDC for npm Trusted Publishers
162+ contents : write
163+ id-token : write
166164 issues : write
167165 pull-requests : write
168166 runs-on : ubuntu-latest
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments