Skip to content

Commit 09832a2

Browse files
committed
chore: Add release-please to 5.x branch
1 parent c048dbd commit 09832a2

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
on:
2+
push:
3+
branches:
4+
- 5.x
5+
name: release-please
6+
env:
7+
NODE_VERSION: 18
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: google-github-actions/release-please-action@v3
13+
id: release
14+
with:
15+
release-type: node
16+
package-name: react-docgen
17+
default-branch: 5.x
18+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
19+
20+
- name: Checkout
21+
if: ${{ steps.release.outputs.release_created }}
22+
uses: actions/checkout@v3
23+
24+
- name: Setup Node.js
25+
if: ${{ steps.release.outputs.release_created }}
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ env.NODE_VERSION }}
29+
cache: 'yarn'
30+
31+
- name: Install dependencies
32+
if: ${{ steps.release.outputs.release_created }}
33+
run: yarn install --frozen-lockfile --non-interactive
34+
35+
- name: Install website dependencies
36+
if: ${{ steps.release.outputs.release_created }}
37+
run: yarn install --frozen-lockfile --non-interactive
38+
working-directory: ./website
39+
40+
- run: npm publish
41+
env:
42+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
43+
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)