Add CI to publish to NPM and bump to 1.1

This commit is contained in:
William Oldham 2024-12-30 15:50:59 +00:00
commit 3abcf166e8
3 changed files with 34 additions and 5 deletions

20
.github/workflows/publish.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Publish to NPM
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org"
- name: Publishing
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}