Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian-dev28 committed Oct 6, 2023
1 parent ea90a48 commit 7fdf4b3
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,33 @@ jobs:
- name: Checkout App Repo
uses: actions/checkout@v3

- name: Setup SSH Agent
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- name: Start SSH Agent
run: |
eval $(ssh-agent -s)
- name: Setup SSH Key
env:
PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
echo "$PRIVATE_KEY" > private_key
chmod 600 private_key
ssh-add private_key
rm -f private_key
- name: Configure SSH
run: |
mkdir -p ~/.ssh
echo "Host github.com" >> ~/.ssh/config
echo " IdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config
echo " StrictHostKeyChecking no" >> ~/.ssh/config
- name: Install App Dependencies
run: yarn --prefer-offline

Expand Down

0 comments on commit 7fdf4b3

Please sign in to comment.