Skip to content

eslint.config update #4

eslint.config update

eslint.config update #4

name: Publish to npm
on:
push:
branches: main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- run: pnpm run test
- run: pnpm run build
- uses: JS-DevTools/npm-publish@v3
with:
# dry-run: true
token: ${{ secrets.NPM_TOKEN }}