#348 test(fe): 환경변수 디버깅 #33
This file contains hidden or 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
| name: Save Cache on PR Merge | |
| on: | |
| pull_request: | |
| types: [closed] | |
| branches: | |
| - main | |
| - dev | |
| push: | |
| branches: | |
| - fe-fix/ci-bug | |
| jobs: | |
| save-cache: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.12.3 | |
| - name: Restore pnpm store cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.pnpm-store | |
| key: ${{ runner.os }}-pnpm-${{ hashFiles('src/frontend/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm- | |
| - name: Restore Turbo cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: src/frontend/.turbo | |
| key: ${{ runner.os }}-turbo-${{ hashFiles('src/frontend/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-turbo- | |
| - name: Ensure caching directories exist | |
| run: | | |
| mkdir -p ~/.pnpm-store | |
| mkdir -p src/frontend/.turbo | |
| - name: Save pnpm store cache | |
| if: always() | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.pnpm-store | |
| key: ${{ runner.os }}-pnpm-${{ hashFiles('src/frontend/pnpm-lock.yaml') }} | |
| - name: Save Turborepo main cache | |
| if: always() | |
| uses: actions/cache@v4 | |
| with: | |
| path: src/frontend/.turbo | |
| key: ${{ runner.os }}-turbo-${{ hashFiles('src/frontend/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-turbo- |