Skip to content

Merge pull request #6 from SkwalExe/jsdelivr #5

Merge pull request #6 from SkwalExe/jsdelivr

Merge pull request #6 from SkwalExe/jsdelivr #5

Workflow file for this run

name: Publish to npm
on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- 'package.json'
- 'package-lock.json'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install --include=dev
- run: npm run build
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}