CI 스크립트에 실행 비트를 주고 bash 로 부른다
Some checks failed
ci / build (push) Failing after 9s

첫 CI 가 checkout 직후 멈췄다.

  exit status 126
  ./build/ci/verify-node.sh: 허가 거부

Node 문제가 아니었다. Windows 에서 만든 파일이라 git 에 mode 100644 로
들어갔고, 리눅스 러너에서 실행 비트가 없어 126 으로 죽었다.

  git update-index --chmod=+x 로 세 스크립트에 실행 비트를 줬다
  워크플로도 `./script` 대신 `bash script` 로 부르게 했다 —
  실행 비트가 다시 빠져도 안 죽는 이중 안전장치다

이번 판단 착오도 기록해둔다. 러너 Node 가 18 인 것을 먼저 보고
그게 원인일 거라 짚었는데, 실제 로그는 그 앞 단계에서 끊겨 있었다.
추정하지 말고 로그를 봤어야 했다.
This commit is contained in:
Yun Chan 2026-08-20 17:10:04 +09:00
parent 8ed45008a0
commit 98d3aaf236
6 changed files with 15 additions and 4 deletions

View file

@ -25,7 +25,7 @@ jobs:
git clean -qfdx
- name: 환경 확인
run: ./build/ci/verify-node.sh
run: bash build/ci/verify-node.sh
- name: 의존성 설치
run: pnpm install --frozen-lockfile

View file

@ -29,7 +29,7 @@ jobs:
git clean -qfdx
- name: 환경 확인
run: ./build/ci/verify-node.sh
run: bash build/ci/verify-node.sh
- name: 릴리스 정보 확정
run: |
@ -75,11 +75,11 @@ jobs:
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
FORGEJO_NPM_TOKEN: "${{ secrets.FORGEJO_NPM_TOKEN }}"
FORGEJO_NPM_OWNER: "${{ vars.FORGEJO_NPM_OWNER }}"
run: ./build/ci/publish-npm.sh packages/cli
run: bash build/ci/publish-npm.sh packages/cli
- name: 릴리스 업로드 (draft)
env: { RELEASE_TOKEN: "${{ secrets.RELEASE_TOKEN }}" }
run: ./build/ci/upload-release-asset.sh "$RELTAG" "$TARBALL"
run: bash build/ci/upload-release-asset.sh "$RELTAG" "$TARBALL"
- name: 소개 페이지 배포 (Cloudflare Pages)
env: