File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - ' master'
77 workflow_dispatch :
8+ inputs :
9+ release_tag :
10+ description : ' Existing git tag to publish to npm (e.g. v1.2.3)'
11+ required : false
12+ type : string
813
914permissions :
1015 contents : write
@@ -13,6 +18,7 @@ permissions:
1318
1419jobs :
1520 release-please :
21+ if : github.event_name != 'workflow_dispatch' || github.event.inputs.release_tag == ''
1622 runs-on : ubuntu-latest
1723 outputs :
1824 release_created : ${{ steps.release.outputs.release_created }}
2733 with :
2834 token : ${{ secrets.BOT_TOKEN }}
2935
36+ manual-publish :
37+ if : github.event_name == 'workflow_dispatch' && github.event.inputs.release_tag != ''
38+ runs-on : ubuntu-latest
39+
40+ steps :
41+ - uses : actions/checkout@v4
42+ with :
43+ ref : ${{ github.event.inputs.release_tag }}
44+ fetch-depth : 0
45+
46+ - uses : actions/setup-node@v4
47+ with :
48+ node-version : ' 24.x'
49+ registry-url : ' https://registry.npmjs.org'
50+
51+ - run : npm ci
52+
53+ - run : npm run build-all
54+
55+ - name : Publish to NPM
56+ run : npm publish --provenance --access public
57+
3058 publish-stable :
3159 needs : release-please
3260 # Use tag_name as the definitive indicator - if a tag exists, a release was created
You can’t perform that action at this time.
0 commit comments