Skip to content

v1.6.1 — Security Patch #3

v1.6.1 — Security Patch

v1.6.1 — Security Patch #3

Workflow file for this run

name: CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [created]
jobs:
ci:
name: Test & Build (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- name: Node.js ${{ matrix.node-version }} 설정
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm test
- run: npm run build
publish:
name: NPM 배포
needs: ci
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'created'
steps:
- uses: actions/checkout@v4
- name: Node.js 20 설정
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
cache: npm
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}