Update yarn.lock
file
#480
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update yarn.lock file | |
on: | |
# run daily | |
schedule: | |
- cron: '0 0 * * *' | |
# allow manual trigger | |
workflow_dispatch: | |
# Ensure only one lock action can run at a time | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
update-yarn-lock-file: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install yarn | |
run: npm install -g yarn | |
- name: Update yarn.lock | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
scripts/update-yarn-lock-file.sh |