Skip to content

Merge pull request #164 from JarvusInnovations/develop #19

Merge pull request #164 from JarvusInnovations/develop

Merge pull request #164 from JarvusInnovations/develop #19

Workflow file for this run

name: Publish npm package
on:
push:
tags: ['v*']
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
package-manager-cache: false # never use caching in release builds
- name: Set package.json version from tag
run: |
set -e
SOURCE_TAG="${GITHUB_REF#refs/tags/}"
npm version --no-git-tag-version "${SOURCE_TAG#v}"
- run: npm ci
- name: Type-check
run: npm run type-check
- name: Test
run: npm test
- name: Build
run: npm run build
- run: npm publish --provenance --access public