Skip to content

0.0.4

0.0.4 #8

Workflow file for this run

name: NPM Release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup PNPM
uses: pnpm/action-setup@master
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@main
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Run tests
run: pnpm test
- name: Build project
run: pnpm build
- name: Publish to NPM
run: pnpm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}