Skip to content

chore: npm deploy 스크립트 추가 #1

chore: npm deploy 스크립트 추가

chore: npm deploy 스크립트 추가 #1

Workflow file for this run

name: Deploy to NPM
on:
push:
tags:
- 'v*'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Run prepare and build
run: yarn prepare
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}