File tree Expand file tree Collapse file tree 5 files changed +6633
-11
lines changed Expand file tree Collapse file tree 5 files changed +6633
-11
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches :
4+ - master
5+
6+ permissions :
7+ contents : write
8+ pull-requests : write
9+ id-token : write
10+
11+ name : release
12+ jobs :
13+ release-please :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : google-github-actions/release-please-action@v3
17+ id : release
18+ with :
19+ release-type : node
20+ package-name : ${{vars.NPM_MODULE_NAME}}
21+ pull-request-title-pattern : ' chore${scope}: release ${version} [skip-ci]'
22+ # The logic below handles the npm publication:
23+ - uses : actions/checkout@v3
24+ # these if statements ensure that a publication only occurs when
25+ # a new release is created:
26+ if : ${{ steps.release.outputs.release_created }}
27+ - uses : actions/setup-node@v3
28+ with :
29+ node-version : 18
30+ registry-url : ' https://registry.npmjs.org'
31+ if : ${{ steps.release.outputs.release_created }}
32+ - run : npm ci
33+ if : ${{ steps.release.outputs.release_created }}
34+ - run : npm publish --provenance --access public
35+ env :
36+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
37+ if : ${{ steps.release.outputs.release_created }}
Original file line number Diff line number Diff line change 88 test :
99 strategy :
1010 matrix :
11- node : [14 .x, 16 .x, 18 .x]
11+ node : [16 .x, 18 .x, 20 .x]
1212 os : [ubuntu-latest, macos-latest]
1313 runs-on : ${{ matrix.os }}
1414 steps :
15- - uses : actions/checkout@v2
15+ - uses : actions/checkout@v3
1616 - name : Use Node.js ${{ matrix.node }}
17- uses : actions/setup-node@v1
17+ uses : actions/setup-node@v3
1818 with :
1919 node-version : ${{ matrix.node }}
2020 - run : npm install
Original file line number Diff line number Diff line change @@ -2,5 +2,4 @@ node_modules
22.DS_Store
33npm-debug.log
44.npmrc
5- package-lock.json *
65
You can’t perform that action at this time.
0 commit comments