Skip to content

Commit

Permalink
Add disable auto pin
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Sep 16, 2024
1 parent a59ba72 commit cd9a3b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/domcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,11 @@ jobs:
webhook_auth: ${{ secrets.WEBHOOK_AUTH_SGP }}
data: >-
{"commands":["git pull","npm i","npm test","sudo systemctl restart bridge"]}
- name: Invoke MNZ deployment hook
uses: distributhor/workflow-webhook@v3
env:
webhook_url: https://my.domcloud.co/api/githubdeploy
webhook_secret: ${{ secrets.WEBHOOK_SECRET_MNZ }}
webhook_auth: ${{ secrets.WEBHOOK_AUTH_MNZ }}
data: >-
{"commands":["git pull","npm i","npm test","sudo systemctl restart bridge"]}
1 change: 1 addition & 0 deletions src/executor/runnercode.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export async function runConfigCodeFeatures(key, value, writeLog, domaindata, ss
await sshExec("pathman add .local/opt/node/bin ; source ~/.config/envman/PATH.env");
await sshExec(`curl -sS https://webinstall.dev/node${arg} | bash`);
await sshExec("command -v corepack &> /dev/null || npm i -g corepack && corepack enable");
await sshExec(`[[ -z $COREPACK_ENABLE_AUTO_PIN ]] && echo "COREPACK_ENABLE_AUTO_PIN=0" >> ~/.bashrc && source ~/.bashrc`)
await sshExec("node --version");
}
break;
Expand Down

0 comments on commit cd9a3b0

Please sign in to comment.