Skip to content

Commit 8a994eb

Browse files
committed
ci: regenerate and verify security lockfile
1 parent c34f4e2 commit 8a994eb

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Regenerate security lockfile
2+
3+
on:
4+
push:
5+
branches:
6+
- automation/cwco-esbuild-0.28.1
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
regenerate-and-verify:
13+
if: ${{ !contains(github.event.head_commit.message, '[lockfile-regenerated]') }}
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
with:
18+
ref: automation/cwco-esbuild-0.28.1
19+
- uses: actions/setup-node@v6
20+
with:
21+
node-version: 22
22+
- name: Regenerate npm lockfile
23+
run: |
24+
npm install --global npm@8.19.4
25+
rm -rf node_modules
26+
npm install --package-lock-only --ignore-scripts
27+
- name: Verify clean install
28+
run: npm ci
29+
- name: Verify build
30+
run: npm run build
31+
- name: Verify tests
32+
run: npm test -- --runInBand
33+
- name: Commit validated lockfile
34+
run: |
35+
git config user.name "github-actions[bot]"
36+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
37+
git add package-lock.json
38+
git rm .github/workflows/regenerate-security-lockfile.yml
39+
git commit -m "fix(deps): regenerate lockfile for esbuild 0.28.1 [lockfile-regenerated]"
40+
git push origin HEAD:automation/cwco-esbuild-0.28.1

0 commit comments

Comments
 (0)