Skip to content

Update

Update #1719

Workflow file for this run

name: Update
on:
schedule:
- cron: '0 0,12 * * *'
permissions:
contents: none
jobs:
update:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
token: ${{ secrets.DEPLOY_TOKEN }}
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: pnpm
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Update dependencies
run: pnpm update -r caniuse-lite browserslist browserslist-lint
- name: Check dependencies
id: changes
run: node ./scripts/check-changes.js
- name: Setup git config
if: steps.changes.outputs.changes
run: |
git config user.name "Andrey Sitnik"
git config user.email "andrey@sitnik.ru"
- name: Run tests
if: steps.changes.outputs.changes
run: pnpm test
- name: Commit changes
if: steps.changes.outputs.changes
run: |
git add pnpm-lock.yaml **/package.json
git commit -m "Update caniuse-lite and browserslist"
- name: Push changes
if: steps.changes.outputs.changes
run: git push --follow-tags