Skip to content

chore(release): 0.0.3 #5

chore(release): 0.0.3

chore(release): 0.0.3 #5

Workflow file for this run

name: Publish to npm
on:
push:
branches:
- 'main'
paths:
- 'package.json'
- 'src/**'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: |
pnpm install
- name: Run tests
run: pnpm test
- name: Build
run: pnpm build
- name: Publish to npm
env:
# add NPM_TOKEN in the GitHub repository’s Settings > Secrets.
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm publish --access public