chore: add workflows

This commit is contained in:
Stevan Freeborn
2025-05-12 22:23:31 -05:00
parent 7d8b94cf03
commit ff37a2dabe
3 changed files with 113 additions and 2 deletions
+29
View File
@@ -0,0 +1,29 @@
name: Publish
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '.github/**/*'
- '**/.gitignore'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ACTIONS_PAT }}
run: npx semantic-release