Skip to content

Conversation

@minjeoong
Copy link
Member

@minjeoong minjeoong commented Aug 1, 2025

📌 Summary

해당 PR에 대한 작업 내용을 요약하여 작성해주세요.

📚 Tasks

깃헙 액션 파일을 수정했습니다.
이유는 해당 깃헙 액션 코드에서

jobs:
  check-changesets:
    name: Check Changesets
    runs-on: ubuntu-latest
    if: github.event_name == 'pull_request' && github.base_ref == 'main'
    steps:
      - name: Checkout Repo
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 18
          cache: 'pnpm'

      - name: Setup pnpm
        uses: pnpm/action-setup@v4
        with:
          version: 9.12.0
Run actions/setup-node@v4
with:
  node-version: 18
  cache: pnpm
...
Error: Unable to locate executable file: pnpm

이와 같은 에러가 발생했습니다.
setup-node 에서 cache : 'pnpm' 는 npm이라는 패키지 매니저를 캐시한다는 뜻이 아니고, "pnpm이 이미 설치되어 있다고 가정하고" pnpm lockfile 기준으로 캐시 설정을 하겠다는 의미입니다.
하지만 이 시점에서는 pnpm을 한 번도 설치한 적이 없기 때문에 실행 불가 에러가 발생했다고 판단했어요.

그래서 pnpm 을 먼저 설치하고, setup node 를 하도록 순서를 변경하여 해결했습니다.

      - name: 📦 Setup pnpm
        uses: pnpm/action-setup@v4
        with:
          version: 9.12.0

      - name: ⚙️ Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 18
          cache: 'pnpm'

changeset 의 config.json 파일 구조를 자세히 기록해두었으니 참고 해주세요

{
  "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
  "changelog": ["@changesets/changelog-github", { "repo": "team-bofit/bofit-client" }], // GitHub PR 정보 기반으로 changelog 생성 (자동화)
  "commit": false, // 버전 변경을 자동 커밋하지 않음 (CI에서 직접 커밋할 경우 false로 유지)
  "linked": [],
  "access": "restricted", // npm 접근 권한 (restricted로 무관하게 설정)
  "baseBranch": "develop", // changeset status가 변경 감지를 위해 참고할 기준 브랜치
  "updateInternalDependencies": "patch", // monorepo일 경우 내부 의존성 버전도 함께 업데이트 (patch 권장)
  "ignore": []
}

@minjeoong minjeoong self-assigned this Aug 1, 2025
@minjeoong minjeoong requested a review from a team as a code owner August 1, 2025 06:07
@minjeoong minjeoong requested review from 1jiwoo27, gwagjiug, hansoojeongsj, jeonghoon11 and jogpfls and removed request for a team August 1, 2025 06:07
@github-actions
Copy link
Contributor

github-actions bot commented Aug 1, 2025

✅ Storybook이 배포되었습니다.
🔗 바로가기

@minjeoong minjeoong changed the title [ Fix ] 버전 컨트롤 github action yml 수정 CI/CD(*): 버전 컨트롤 github action yml 수정 Aug 1, 2025
@minjeoong minjeoong merged commit dc83b9b into develop Aug 7, 2025
3 checks passed
@minjeoong minjeoong linked an issue Aug 7, 2025 that may be closed by this pull request
@minjeoong minjeoong deleted the chore/release branch August 7, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI/CD] version control 깃헙 액션 코드 수정

3 participants