Skip to content

Auto update dependencies #112

Auto update dependencies

Auto update dependencies #112

Workflow file for this run

name: Auto update dependencies
permissions:
contents: write
on:
workflow_dispatch:
schedule:
- cron: '0 23 * * 5'
env:
# allow yarn creating lockfile in CI environment
YARN_ENABLE_IMMUTABLE_INSTALLS: false
jobs:
auto-update-dependencies:
timeout-minutes: 4
runs-on: ubuntu-latest
steps:
- name: Checkouting repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
- name: Node setup
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version: 20
cache: yarn
- name: Update package versions
run: npx taze@latest -swf latest
- name: Update resolution versions
run: node ./scripts/update-resolution.mjs
shell: bash
- name: Update lock file
run: |
rm ./yarn.lock
yarn
- name: Test if project still builds
run: yarn build
- name: Commit and push changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -am "chore: update deps" || echo "nothing changed ?"
git remote set-url origin https://${{ secrets.ACTIONS_PAT }}@github.com/logotip4ik/keycap
git push origin ${{ github.ref_name }}