-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 798 Bytes
/
Copy pathnewmain.yml
File metadata and controls
33 lines (28 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
on:
workflow_dispatch:
jobs:
regen-lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: true
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Clean workspace
run: |
rm -rf node_modules package-lock.json
- name: Install dependencies (npm)
run: |
npm ci
- name: Run build (to ensure native binaries are fetched)
run: |
npm run build
- name: Commit lockfile
run: |
git add package-lock.json
git commit -m "chore: regenerate package-lock.json on linux for native bindings" || echo "no changes to commit"
git push