Skip to content

Commit

Permalink
ci: add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
westonpace committed Dec 9, 2024
1 parent 50ab6ce commit f91082e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: NPM Publish

on:
push:
tags:
- "v*"

jobs:
node:
name: Publish to NPM
runs-on: ubuntu-latest
# Only runs on tags that matches the make-release action
if: startsWith(github.ref, 'refs/tags/v')
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"
cache-dependency-path: package-lock.json
- name: Build
run: |
npm ci
npm run build
- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.FSQL_PUBLISH_TOKEN }}
run: |
npm publish --access public

0 comments on commit f91082e

Please sign in to comment.