File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,12 +18,19 @@ jobs:
1818 sudo apt-get install git-lfs
1919 git lfs install
2020
21+ - name : Verify single lockfile
22+ run : |
23+ if [ -f package-lock.json ] && [ -f yarn.lock ]; then
24+ echo "ERROR: Both lockfiles exist"
25+ exit 1
26+ fi
27+
2128 - name : Use Node.js 22.11.0
2229 uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2330 with :
2431 node-version : 22.11.0
2532 registry-url : https://npm.pkg.github.com/
26- - run : npm ci
33+ - run : npm ci --ignore-scripts
2734 - name : Code Linting
2835 run : npm run lint
2936 - run : npm run build --if-present
Original file line number Diff line number Diff line change 7777 fetch-depth : 0
7878 lfs : true # Ensure LFS files are checked out
7979
80+ # VERIFY SINGLE LOCKFILE
81+ - name : Verify single lockfile
82+ run : |
83+ if [ -f package-lock.json ] && [ -f yarn.lock ]; then
84+ echo "ERROR: Both lockfiles exist"
85+ exit 1
86+ fi
87+
8088 # GIT CONFIGURATION
8189 - run : |
8290 git config user.name github-actions
@@ -133,7 +141,7 @@ jobs:
133141 # RUN NPM INSTALL AND BUILD
134142 - name : NPM ci and build
135143 run : |
136- npm ci
144+ npm ci --ignore-scripts
137145 npm run build
138146
139147 # CREATE PR FOR VERSION
Original file line number Diff line number Diff line change 1+ Default registry for most packages
2+ registry = https://npm.echohq.com/
3+
4+ # Supply Chain Security Policy: Block lifecycle scripts
5+ ignore-scripts = true
You can’t perform that action at this time.
0 commit comments