Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Oct 12, 2023
1 parent ddc8ea7 commit 97ad2d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
permissions:
contents: read
pull-requests: write
packages: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -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

Expand Down

0 comments on commit 97ad2d7

Please sign in to comment.