File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
- # push:
3
- # branches: [ main, 4.x ]
2
+ push :
3
+ branches : [ main ]
4
4
workflow_dispatch : {}
5
5
6
6
permissions :
@@ -13,11 +13,22 @@ jobs:
13
13
release-please :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
- - uses : google-github-actions/release-please-action@v3
16
+ - id : release
17
+ uses : google-github-actions/release-please-action@v3
17
18
with :
18
19
release-type : node
19
20
package-name : mongodb
20
- plugins : mongodb
21
21
pull-request-title-pattern : ' chore${scope}: release${component} ${version} [skip-ci]'
22
22
changelog-path : HISTORY.md
23
- default-branch : main # This setting is so that running the workflow against this WIP branch will still use main for search for releases
23
+ default-branch : main
24
+
25
+ # If release-please created a release, publish to npm
26
+ - if : ${{ steps.release.outputs.release_created }}
27
+ uses : actions/checkout@v3
28
+ - if : ${{ steps.release.outputs.release_created }}
29
+ name : setup
30
+ uses : ./.github/actions/setup.yml
31
+ - if : ${{ steps.release.outputs.release_created }}
32
+ run : npm publish --provenance
33
+ env :
34
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments