HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🧚
[1기]최종 프로젝트 데브코스
/
[팀7] 뿡치와 삼촌들 - Devnity
[팀7] 뿡치와 삼촌들 - Devnity
/
📘
프론트엔드 공간
/
🧑‍🎓
Today We Learned
/
yarn으로 CI 구축하기
yarn으로 CI 구축하기
yarn으로 CI 구축하기

yarn으로 CI 구축하기

생성일
Dec 6, 2021 06:25 AM
기록자
Jay Mincheol Cho
해결 여부
해결 여부
속성
github
카테고리
Git

블로그

https://datalater.github.io/posts/github-actions-yarn/

.github/workflows/ci.yml

name: Node.js CI on: [push, pull_request] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [16.x] steps: - name: Check out repository uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - uses: actions/cache@v2 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- - name: Install a project run: yarn install - name: Lint run: yarn lint - name: Test run: yarn test

See also

  • yarn cache - https://github.com/actions/cache/blob/master/examples.md#node---yarn

🔥 문제

🤔 질문

📢 답변