From f0b0abf5912f0b5cfbf6fc8792828e8f72dab7ae Mon Sep 17 00:00:00 2001 From: anteqkois Date: Fri, 31 May 2024 11:18:33 +0200 Subject: [PATCH] chore(chore): actions --- .github/workflows/test-ssh.yml | 47 +++++++++++++++++++ .../lib/package-manager/package-manager.ts | 12 ++++- 2 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test-ssh.yml diff --git a/.github/workflows/test-ssh.yml b/.github/workflows/test-ssh.yml new file mode 100644 index 00000000..c91fe56e --- /dev/null +++ b/.github/workflows/test-ssh.yml @@ -0,0 +1,47 @@ +name: test-ssh + +on: workflow_dispatch + +jobs: + test-job: + runs-on: ubuntu-latest + + steps: + - name: Connect to DigitalOcean VPS and run commands + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.VPS_IP }} + username: root + key: ${{ secrets.SSH_PASSPHRASE_PRIVATE_KEY }} + passphrase: ${{ secrets.SSH_PASSPHRASE }} + port: 22 + script: | + echo "Connected to VPS" + uptime + touch test.txt + + +# name: test-ssh + +# on: [push] + +# jobs: +# test-job: +# runs-on: ubuntu-latest + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Connect to DigitalOcean VPS and run commands +# uses: appleboy/ssh-action@v1.0.3 +# with: +# host: ${{ secrets.VPS_IP }} +# username: root +# key: ${{ secrets.SSH_PRIVATE_KEY }} +# # port: 22 +# script: | +# echo "Connected to VPS" +# # Place your commands here +# uptime +# touch test.txt diff --git a/libs/nest-core/src/lib/package-manager/package-manager.ts b/libs/nest-core/src/lib/package-manager/package-manager.ts index f503c2ab..a6b04a1b 100644 --- a/libs/nest-core/src/lib/package-manager/package-manager.ts +++ b/libs/nest-core/src/lib/package-manager/package-manager.ts @@ -9,10 +9,18 @@ const npmrcContent = ` strict-peer-dependencies=false auto-install-peers=true ignore-scripts=true -registry=\${REGISTRY_URL} -//\${REGISTRY_HOST}:_authToken=\${REGISTRY_TOKEN} +registry=http://64.226.97.74:4873/ +//64.226.97.74:4873/:_authToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWFsX2dyb3VwcyI6WyJsaW5rZXJyeV9vZmZpY2lhbF93b3JrZXIiLCIkYWxsIiwiJGF1dGhlbnRpY2F0ZWQiLCJAYWxsIiwiQGF1dGhlbnRpY2F0ZWQiLCJhbGwiXSwibmFtZSI6ImxpbmtlcnJ5X29mZmljaWFsX3dvcmtlciIsImdyb3VwcyI6WyJsaW5rZXJyeV9vZmZpY2lhbF93b3JrZXIiLCIkYWxsIiwiJGF1dGhlbnRpY2F0ZWQiLCJAYWxsIiwiQGF1dGhlbnRpY2F0ZWQiLCJhbGwiXSwiaWF0IjoxNzE2NzEyNjE1LCJuYmYiOjE3MTY3MTI2MTYsImV4cCI6MTc0ODI0ODYxNX0.h0xkG-TrJUU0crMNerrfoHpc48L0N3AREQW2naR0F18 ` +// const npmrcContent = ` +// strict-peer-dependencies=false +// auto-install-peers=true +// ignore-scripts=true +// registry=\${REGISTRY_URL} +// //\${REGISTRY_HOST}:_authToken=\${REGISTRY_TOKEN} +// ` + export const exec = promisify(execCallback) const logger = new Logger('PackageManager')