File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff 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+
You can’t perform that action at this time.
0 commit comments