Skip to content

Commit

Permalink
chore(chore): actions
Browse files Browse the repository at this point in the history
  • Loading branch information
anteqkois committed May 31, 2024
1 parent bbda0b8 commit f0b0abf
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test-ssh.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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/[email protected]
# 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
12 changes: 10 additions & 2 deletions libs/nest-core/src/lib/package-manager/package-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit f0b0abf

Please sign in to comment.