Skip to content

Commit 400fe7a

Browse files
committed
fix: add shrinkwrap lockfile
1 parent 541a12c commit 400fe7a

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.github/workflows/publish-mcp-server.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@ jobs:
172172
if: ${{ steps.changelog.outputs.skipped == 'false' && steps.release.outputs.id != '' }}
173173
run: |
174174
cd packages/mcp
175+
rm -rf node_modules
176+
mkdir $TMPDIR/mcp-shrinkwrap
177+
cp -r . $TMPDIR/mcp-shrinkwrap
178+
cd $TMPDIR/mcp-shrinkwrap
179+
npm install
180+
npm shrinkwrap
181+
175182
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
176183
177184
# Determine npm dist-tag

packages/mcp/.sfdevrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"scripts": {
3+
"prepack": "echo 'no prepack script'"
4+
},
25
"devDepOverrides": [
36
"eslint-config-salesforce-license",
47
"@types/node"

packages/mcp/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"lint-fix": "yarn sf-lint --fix",
2323
"package": "yarn pack",
2424
"postpack": "sf-clean --ignore-signing-artifacts",
25+
"prepack": "echo 'no prepack script'",
2526
"prepare": "sf-install",
27+
"prepublishOnly": "npm shrinkwrap",
2628
"start": "yarn build && npm link && mcp-inspector sf-mcp-server",
2729
"test": "wireit",
2830
"test:only": "wireit"
@@ -38,6 +40,7 @@
3840
"!lib/**/*.map",
3941
"messages",
4042
"LICENSE.txt",
43+
"npm-shrinkwrap.json",
4144
"package.json"
4245
],
4346
"dependencies": {

0 commit comments

Comments
 (0)