Skip to content

chore: update github workflow #6

chore: update github workflow

chore: update github workflow #6

Workflow file for this run

name: Publish to NPM
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18"
run: |
npm i -g corepack
yarn install
- name: Build library 🔧
run: yarn build
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}