Skip to content

Update

Update #1284

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 tools from asdf config
uses: ai/asdf-cache-action@v1
- 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