Skip to content

fix: github action release workflow #4

fix: github action release workflow

fix: github action release workflow #4

Workflow file for this run

name: Release & Publish to NPM
on:
push:
branches:
- 'main'
jobs:
release:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Initialize Git user
run: |
git config --global user.email "keumks0331@gmail.com"
git config --global user.name "Release Workflow"
- name: Set Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: yarn
- run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}