chore(main): release 3.1.1 #193
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@692973e3d937129bcbf40652eb9f2f61becf3332 # 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 |