npm publishing

This commit is contained in:
avscs
2025-05-11 10:27:36 -04:00
committed by avsc-sid
parent 2b0f983ba7
commit 4417ba8ba8
4 changed files with 80 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
name: Publish to NPM
on:
push:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Setup Node
uses: actions/setup-node@v3.9.1
with:
node-version: 'lts'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
run: npm ci && npm run build
- name: Publish package on NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}