Skip to content

Publish Sparkle

Publish Sparkle #454

name: Publish Sparkle
on:
workflow_dispatch:
concurrency:
group: publish_sparkle
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
# This ensures the workflow only runs on main branch
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.13.0
cache: "npm"
cache-dependency-path: ./sparkle/package-lock.json
registry-url: "https://registry.npmjs.org"
- working-directory: sparkle
run: npm ci && npm run build && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}