File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ # adapted from https://github.com/googleapis/release-please-action#automating-publication-to-npm
2+ on :
3+ push :
4+ branches :
5+ - main
6+ name : release-please
7+ jobs :
8+ release-please :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : googleapis/release-please-action@v4
12+ id : release
13+ with :
14+ release-type : node
15+ # The logic below handles the npm publication:
16+ - uses : actions/checkout@v4
17+ # these if statements ensure that a publication only occurs when
18+ # a new release is created:
19+ if : ${{ steps.release.outputs.release_created }}
20+ - uses : actions/setup-node@v4
21+ with :
22+ node-version : ' 22'
23+ registry-url : ' https://registry.npmjs.org'
24+ if : ${{ steps.release.outputs.release_created }}
25+ - run : corepack enable
26+ if : ${{ steps.release.outputs.release_created }}
27+ - run : yarn --immutable
28+ if : ${{ steps.release.outputs.release_created }}
29+ - run : npm publish
30+ env :
31+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
32+ if : ${{ steps.release.outputs.release_created }}
You can’t perform that action at this time.
0 commit comments