Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ jobs:
sudo apt-get install git-lfs
git lfs install

- name: Verify single lockfile
run: |
if [ -f package-lock.json ] && [ -f yarn.lock ]; then
echo "ERROR: Both lockfiles exist"
Comment thread
cx-aniket-shinde marked this conversation as resolved.
exit 1
fi

if [ ! -f yarn.lock ] && [ ! -f package-lock.json ]; then
echo "ERROR: No lockfile found,Policy requires exactly ONE package manager lockfile"
exit 1
fi

- name: Use Node.js 22.11.0
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ jobs:
fetch-depth: 0
lfs: true # Ensure LFS files are checked out

# VERIFY SINGLE LOCKFILE
- name: Verify single lockfile
run: |
if [ -f package-lock.json ] && [ -f yarn.lock ]; then
Comment thread
cx-aniket-shinde marked this conversation as resolved.
echo "ERROR: Both lockfiles exist"
exit 1
fi

if [ ! -f yarn.lock ] && [ ! -f package-lock.json ]; then
echo "ERROR: No lockfile found,Policy requires exactly ONE package manager lockfile"
exit 1
fi

# GIT CONFIGURATION
- run: |
git config user.name github-actions
Expand Down
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Default registry for most packages
registry=https://npm.echohq.com/

ignore-scripts=true
111 changes: 36 additions & 75 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"serialize-javascript": "6.0.2",
"brace-expansion": "2.0.3",
"lodash": "4.18.0",
"uuid": "14.0.0"
"uuid": "14.0.0",
"js-yaml": "4.2.0"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
Expand Down
Loading