Skip to content

weekly-patch

weekly-patch #17

name: weekly-patch
on:
schedule:
- cron: '0 0 */14 * *'
jobs:
weekly-patch:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- id: actions-checkout
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.AUTO_COMMIT_KEY }}
- id: setup-git-config
run: |
git config user.name 'WeeklyPatch'
git config user.email '[email protected]'
- id: setup-node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- id: install-dependencies
run: npm install
- id: build-package
run: npm run build
- id: commit-changes
run: |
git add .
git commit -m '(patch): weekly patch'
- id: patch-version
run: npm version patch
- id: push-changes
run: git push && git push --tags