Skip to content

Commit a19bd3c

Browse files
ignore script related changes
1 parent b1e8144 commit a19bd3c

3 files changed

Lines changed: 22 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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

‎.github/workflows/release.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ jobs:
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

‎.npmrc‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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

0 commit comments

Comments
 (0)