Publish Sparkle #257
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |