Skip to content

Commit baf389b

Browse files
ci: temporary workflow to regenerate package-lock on native linux
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 13aba35 commit baf389b

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/gen-lock.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: gen-lock
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- npm_audit_june_cmj
7+
jobs:
8+
gen:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v6
12+
- uses: actions/setup-node@v6
13+
with:
14+
node-version-file: ".nvmrc"
15+
- name: Regenerate package-lock.json (native linux x64)
16+
run: |
17+
rm -f package-lock.json
18+
npm install --package-lock-only --ignore-scripts
19+
echo "=== sanity ==="
20+
node -e "const d=require('./package-lock.json');const c=re=>Object.keys(d.packages).filter(k=>re.test(k)).length;console.log('parcel-watcher variants:',c(/@parcel\/watcher-/));console.log('rollup variants:',c(/@rollup\/rollup-/));console.log('esbuild variants:',c(/@esbuild\//));console.log('ramda:',!!d.packages['node_modules/ramda']);console.log('pseudolocale:',Object.keys(d.packages).some(k=>/pseudolocale$/.test(k)));console.log('electron:',d.packages['node_modules/electron'].version);console.log('total:',Object.keys(d.packages).length)"
21+
- uses: actions/upload-artifact@v4
22+
with:
23+
name: package-lock
24+
path: package-lock.json

0 commit comments

Comments
 (0)