Skip to content

Commit

Permalink
chore: update yarn.lock workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kedrzu committed Jan 22, 2025
1 parent e4112d9 commit 8eab9a5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/update-yarn-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Update yarn.lock file
on:
push:
branches: [main]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest

- name: Setup Git
run: |
git config --local user.email "actions@github.com"
git config --local user.name "Github Actions"
- run: yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false

- name: Check for changes
id: check_changes
run: |
if git diff --exit-code; then
echo "No changes to commit."
else
git config --local user.email "actions@github.com"
git config --local user.name "Github Actions"
git commit -a -m "chore: update yarn.lock"
git push
fi

0 comments on commit 8eab9a5

Please sign in to comment.