From 97ad2d70b3667cca5b7b28ed70ddd2a0cb4c87d0 Mon Sep 17 00:00:00 2001 From: gxz Date: Thu, 12 Oct 2023 17:22:04 +0800 Subject: [PATCH] chore: ci --- .github/workflows/build.yml | 6 ++++-- .github/workflows/pr.yml | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 55d5dca..0c29134 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,14 +26,16 @@ jobs: - name: Build 🔧 + id: dist run: | - pnpm install pnpm run lint pnpm run test pnpm run build MY_PATH=$(ls packages/rtc/dist | awk -F/ '{print $NF}') - echo "::set-output name=dist_path::${MY_PATH}" + + outputs: + dist_path: ${{ steps.dist.outputs.MY_PATH }} - name: Upload Artifact ⬆️ uses: actions/upload-artifact@v3 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index df69e07..9ffb10e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -12,6 +12,7 @@ jobs: permissions: contents: read pull-requests: write + packages: read concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -20,6 +21,11 @@ jobs: - name: Checkout 🛎️ uses: actions/checkout@v3 + - name: Add SSH key to chekout a private repo + uses: webfactory/ssh-agent@v0.7.0 + with: + ssh-private-key: ${{ secrets.REPO_SSH_KEY }} + - name: Setup 🛠️ uses: ./.github/actions/setup