Skip to content

Bump version to 0.3.6 #14

Bump version to 0.3.6

Bump version to 0.3.6 #14

Workflow file for this run

name: Publish npm
on:
push:
tags:
- 'v*'
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
- name: Verify tag matches package version
run: |
TAG_VERSION="${GITHUB_REF_NAME#v}"
PACKAGE_VERSION="$(node -p "require('./package.json').version")"
if [[ "${TAG_VERSION}" != "${PACKAGE_VERSION}" ]]; then
echo "Tag version ${TAG_VERSION} does not match package.json version ${PACKAGE_VERSION}."
exit 1
fi
- name: Publish
run: npm publish --access public --provenance