Skip to content

v0.0.8

v0.0.8 #7

Workflow file for this run

name: Publication πŸ“¦
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
environment: npm
permissions:
contents: read
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
ref: ${{ github.event.release.tag_name }}
- name: Verify tag matches package.json
run: |
TAG_NAME="${{ github.event.release.tag_name }}"
TAG_VERSION="${TAG_NAME#v}"
PKG_VERSION=$(jq -r .version package.json)
if [ "$TAG_VERSION" != "$PKG_VERSION" ]; then
echo "Error: νƒœκ·Έ 버전과 package.json 버전이 μΌμΉ˜ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€."
echo "tag version: ${TAG_VERSION}"
echo "package.json version: ${PKG_VERSION}"
exit 1
fi
echo "βœ… 버전 일치 확인: ${TAG_VERSION}"
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Build package
run: |
bun install --frozen-lockfile
bun run prepare
bun run build:lib
- name: Publish to npm
run: npm publish --provenance --ignore-scripts # --provenance: OIDC 인증 및 좜처 증λͺ…, --ignore-scripts: skip prepare script (already ran in Build package step)