-
Notifications
You must be signed in to change notification settings - Fork 303
37 lines (34 loc) · 1019 Bytes
/
pre-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Pre-release
permissions: read-all
on:
push:
branches:
- release-please-*
jobs:
pre-release:
if: "${{ startsWith(github.event.head_commit.message, 'chore(main): release') }}"
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.0.0
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Install dependencies
run: npm ci
- name: Build library
run: npm run build
- name: Build docs
run: npm run docs
- name: Format
run: npm run format
- name: Commit
run: |
git config --global user.name 'release-please[bot]'
git config --global user.email '55107282+release-please[bot]@users.noreply.github.com'
git add --all
if ! git diff-index --quiet HEAD; then
git commit -m 'chore: generate docs'
git push --no-verify
fi