Bump version: 0.2.1-beta.0 → 0.2.1 #2
Workflow file for this run
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: 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 | |
registry-url: "https://registry.npmjs.org" | |
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 |