File tree Expand file tree Collapse file tree 3 files changed +35
-38
lines changed
Expand file tree Collapse file tree 3 files changed +35
-38
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : npm publish
2+
3+ on :
4+ # For staging releases
5+ workflow_dispatch :
6+ # For latest releases
7+ release :
8+ types : [published]
9+
10+ permissions :
11+ id-token : write # Required for OIDC
12+ packages : write
13+ contents : read
14+
15+ jobs :
16+ compute-staging-version :
17+ # Only run for manual dispatch (staging)
18+ if : github.event_name == 'workflow_dispatch'
19+ uses : ./.github/workflows/reusable-compute-staging-version.yml
20+
21+ npm-publish-staging :
22+ # Only run for manual dispatch (staging)
23+ if : github.event_name == 'workflow_dispatch'
24+ uses : ./.github/workflows/reusable-npm.yml
25+ needs : [compute-staging-version]
26+ with :
27+ version : ${{ needs.compute-staging-version.outputs.version }}
28+ tag : ${{ needs.compute-staging-version.outputs.dist-tag }}
29+
30+ npm-publish-latest :
31+ # Only run for release published (latest)
32+ if : github.event_name == 'release'
33+ uses : ./.github/workflows/reusable-npm.yml
34+ with :
35+ tag : latest
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments