Skip to content

feat(actions): XXX-0 allow plibot to force push #13

feat(actions): XXX-0 allow plibot to force push

feat(actions): XXX-0 allow plibot to force push #13

Workflow file for this run

name: Release
on:
push:
branches:
- main
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.PLIBOT_PAT }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# Run semantic release and copy updated package.json back to the root of the repo.
run: |
yarn semantic-release
npx pinst --enable
# Commit changes to package.json and README.md
- name: Auto Commit
uses: stefanzweifel/git-auto-commit-action@v4
env:
SKIP_COMMITIZEN: true
with:
# Optional, but recommended
# Defaults to "Apply automatic changes"
commit_message: ${{ github.event.head_commit.message }} [skip ci]
# Avoid running husky here
commit_options: '--no-verify'
# Optional glob pattern of files which should be added to the commit
# Defaults to all (.)
# See the `pathspec`-documentation for git
# - https://git-scm.com/docs/git-add#Documentation/git-add.txt-ltpathspecgt82308203
# - https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec
file_pattern: package.json
# Optional. Disable dirty check and always try to create a commit and push
skip_dirty_check: false
# Optional. Skip internal call to `git fetch`
skip_fetch: true
# PliBot is allowed to force-push, bypassing the branch protections
push_options: --force