Skip to content

init

init #2

Workflow file for this run

name: Publish to NPM
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: pnpm install, build, and test
run: |
pnpm install
pnpm build
pnpm test
- name: publish
env:
NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
pnpm run deploy