Skip to content

Add tests, switch to bun, outsource regex #22

Add tests, switch to bun, outsource regex

Add tests, switch to bun, outsource regex #22

Workflow file for this run

name: Publish package to GitHub Packages
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
# Use Node.js with pnpm caching
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20.x" # replace with your desired Node.js version
registry-url: "https://registry.npmjs.org"
- name: Install pnpm
run: npm install -g pnpm
# Install dependencies
- name: Install dependencies
run: pnpm install
# Build package
- name: Build package
run: pnpm build
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}