Skip to content

Commit 53c2fa5

Browse files
committed
ci: set up release-please
1 parent 7b70121 commit 53c2fa5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
name: release-please
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: googleapis/release-please-action@v4
17+
id: release
18+
with:
19+
release-type: node
20+
- uses: actions/checkout@v4
21+
if: ${{ steps.release.outputs.release_created }}
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 22
25+
registry-url: 'https://registry.npmjs.org'
26+
if: ${{ steps.release.outputs.release_created }}
27+
- run: npm ci
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 }}

0 commit comments

Comments
 (0)