Skip to content

Commit 1ae0373

Browse files
authored
Update build.yaml
1 parent 0efee45 commit 1ae0373

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/build.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,27 @@ jobs:
2727
steps:
2828
- name: ⬇️ Checkout Repo
2929
uses: actions/checkout@v4
30+
31+
- name: 🗑️ Remove package-lock.json
32+
run: rm -f package-lock.json
3033

31-
- name: 📦 Install Packages
32-
run: npm install
34+
- name: ⬢ Setup Node.js
35+
with:
36+
node-version: '*'
37+
registry-url: 'https://registry.npmjs.org'
3338

3439
- name: 📦 Install Packages
35-
run: npm ci
40+
run: npm install
3641

3742
- name: 🧪 Test
3843
run: npm test
44+
45+
- name: Commit and push new package-lock.json
46+
run: |
47+
git config --global user.name "github-actions[bot]"
48+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
49+
git add package-lock.json
50+
git commit -m "ci: update package-lock.json [skip ci]" || echo "No changes to commit"
51+
git push || echo "No changes to push"
52+
53+

0 commit comments

Comments
 (0)