Skip to content

release: v1.8.1 — catalog +25 (KR/JP/TW/US) + scripted reference pipe… #3

release: v1.8.1 — catalog +25 (KR/JP/TW/US) + scripted reference pipe…

release: v1.8.1 — catalog +25 (KR/JP/TW/US) + scripted reference pipe… #3

Workflow file for this run

# npm 자동 배포 — vX.Y.Z 태그 푸시가 트리거.
#
# 릴리스 절차 (로컬):
# 1. package.json version 범프 + CHANGELOG 항목 → main 머지
# 2. git tag v1.7.2 && git push origin v1.7.2
# 3. 이 워크플로가 테스트 → 빌드 → npm publish (provenance 포함)
#
# 필요 시크릿: NPM_TOKEN (npmjs.com granular token, oh-my-design-cli read+write)
# 주의: npm 계정 2FA 설정이 "Require 2FA and disallow tokens"면 publish가
# EOTP로 실패한다 — "2FA for authorization only" 또는 토큰 허용으로 둘 것.
name: Release to npm
on:
push:
tags:
- "v*.*.*"
permissions:
contents: read
id-token: write # npm provenance 서명용
concurrency:
group: release
cancel-in-progress: false
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 22
registry-url: "https://registry.npmjs.org"
- name: Verify tag matches package.json version
run: |
PKG_VERSION=$(node -p "require('./package.json').version")
TAG_VERSION="${GITHUB_REF_NAME#v}"
if [ "$PKG_VERSION" != "$TAG_VERSION" ]; then
echo "::error::tag $GITHUB_REF_NAME != package.json $PKG_VERSION"
exit 1
fi
- run: npm ci
- run: npm test
# prepublishOnly가 build + gen-llms-full + release-hygiene(pack)을 다시 돌린다
- name: Publish
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}