Skip to content

Commit ed60eae

Browse files
Other/ci cd updates(AST-160402) (#1026)
* ignore script related changes * ignore to npmrc * Verified commit * npmrc changes * Verify only one file is present * resolved imports * resolved imports
1 parent b1e8144 commit ed60eae

5 files changed

Lines changed: 67 additions & 76 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ 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+
28+
if [ ! -f yarn.lock ] && [ ! -f package-lock.json ]; then
29+
echo "ERROR: No lockfile found,Policy requires exactly ONE package manager lockfile"
30+
exit 1
31+
fi
32+
2133
- name: Use Node.js 22.11.0
2234
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2335
with:

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,19 @@ 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+
88+
if [ ! -f yarn.lock ] && [ ! -f package-lock.json ]; then
89+
echo "ERROR: No lockfile found,Policy requires exactly ONE package manager lockfile"
90+
exit 1
91+
fi
92+
8093
# GIT CONFIGURATION
8194
- run: |
8295
git config user.name github-actions

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Default registry for most packages
2+
registry=https://npm.echohq.com/
3+
4+
ignore-scripts=true

package-lock.json

Lines changed: 36 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"serialize-javascript": "6.0.2",
4747
"brace-expansion": "2.0.3",
4848
"lodash": "4.18.0",
49-
"uuid": "14.0.0"
49+
"uuid": "14.0.0",
50+
"js-yaml": "4.2.0"
5051
},
5152
"publishConfig": {
5253
"registry": "https://npm.pkg.github.com"

0 commit comments

Comments
 (0)