Skip to content

Commit

Permalink
fix(@zakelstorm/blog): pr의 github action이 rerun되지않는 현상 수정 및 pnpm-stor…
Browse files Browse the repository at this point in the history
…e 캐시를 통한 의존성설치 시간 단축"
  • Loading branch information
nz10387 committed Jun 2, 2024
1 parent 9fc9858 commit 7d6ba19
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
8 changes: 8 additions & 0 deletions .github/actions/build_test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ runs:
working-directory: ./apps/blog
shell: bash

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm install
shell: bash
Expand Down
22 changes: 5 additions & 17 deletions .github/workflows/retry_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,12 @@ jobs:
retry:
name: Build and Test
timeout-minutes: 15
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/retry')
if: ${{ github.event.issue.pull_request }}
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3
- name: rerun
uses: estroz/rerun-actions@main
with:
fetch-depth: 2

- name: Build and Test
uses: ./.github/actions/build_test
with:
node-version-file: '.nvmrc'
NEXT_PUBLIC_SANITY_STUDIO_URL: ${{ secrets.NEXT_PUBLIC_SANITY_STUDIO_URL }}
NEXT_PUBLIC_BASE_URL: ${{ secrets.NEXT_PUBLIC_BASE_URL }}
NEXT_PUBLIC_SANITY_DATASET: ${{ secrets.NEXT_PUBLIC_SANITY_DATASET }}
NEXT_PUBLIC_SANITY_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_SANITY_PROJECT_ID }}
NEXT_PUBLIC_SANITY_ADMIN_TOKEN: ${{ secrets.NEXT_PUBLIC_SANITY_ADMIN_TOKEN }}
NEXT_PUBLIC_SANITY_USER_TOKEN: ${{ secrets.NEXT_PUBLIC_SANITY_USER_TOKEN }}
NEXT_PUBLIC_SANITY_REVALIDATE_SECRET: ${{ secrets.NEXT_PUBLIC_SANITY_REVALIDATE_SECRET }}
NEXT_PUBLIC_SANITY_API_VERSION: ${{ secrets.NEXT_PUBLIC_SANITY_API_VERSION }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
comment_id: ${{ github.event.comment.id }}

0 comments on commit 7d6ba19

Please sign in to comment.