This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea90a48
commit 7fdf4b3
Showing
1 changed file
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|