소스 정보
- 저장소
- getsentry/action-release
- 최근 소스 활동
- 2026년 4월 20일 15:03
- 감지된 SKILL.md 언어
- 영어
- 스타
- 496
- 포크
- 62
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/getsentry/action-release --skill verify-dist명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | verify-dist |
| description | Regenerate and commit dist/index.js when source files or runtime deps change |
| argument-hint | ["--check | --fix"] |
action-release ships a bundle in dist/ built by ncc. The verify-dist CI workflow (.github/workflows/verify-dist.yml) fails any PR where the committed bundle does not match the source. This skill keeps them in sync locally.
dist/ is a directory, not a single file. Alongside dist/index.js, ncc emits code-split chunks (dist/319.index.js and friends) for every dynamic import() in a dependency. @opentelemetry/resources loads its per-platform getMachineId that way, so the chunks arrive with @sentry/node. index.js loads them at runtime with a relative require, so they must sit next to it and must all be committed.
src/.package.json (anything under dependencies, not devDependencies).--check (default)Report whether dist/ is in sync with the current source tree. Do not modify anything.
yarn install --frozen-lockfile
yarn build
git diff --ignore-space-at-eol --stat dist/
git ls-files --others --exclude-standard dist/ # new chunks show up here, not in git diff
dist/ is in sync. Done.--fix.--fixRebuild and stage dist/.
yarn install
yarn build
git add dist/
git status --short dist/
Do not commit automatically — let the user review the bundle diff first. A reasonable follow-up commit message:
build: regenerate dist/index.js
Or, if tied to a source change:
<type>(<scope>): <summary>
Regenerates dist/index.js.
Whoever runs the follow-up commit needs the repo's pre-commit hooks installed. Verify with ls .git/hooks/pre-commit; if missing, run make (installs yarn deps + pre-commit install) or pre-commit install.
The set-docker-tag-from-branch hook will rewrite action.yml on the first commit of a branch and fail the commit. Recover by staging action.yml and committing again (never --amend — the hook-failed commit never landed):
git add action.yml
git commit -m "<same message>"
CI does not run pre-commit. CI's prepare-docker job rejects PRs where action.yml's Docker tag still matches a semver like 3.6.0, so keeping the tag in sync via the local hook is what prevents the CI failure.
git diff --ignore-space-at-eol dist/ — whitespace-only diffs pass, anything else fails. Match that locally.dist/ via git ls-files --others --exclude-standard dist/. git diff alone never reports a brand-new chunk, so a missing chunk would otherwise pass CI and only break at runtime on whichever platform needs it.yarn build shells out to ncc build src/main.ts -e @sentry/cli. @sentry/cli is deliberately excluded from the bundle because it ships its own native binaries at runtime.dist/index.js or any chunk. Always regenerate..github/workflows/verify-dist.yml — the CI check this skill satisfies.package.json → scripts.build — the canonical build command.src/main.ts — the ncc entry point.