Skip to content

v0.4.0 — web mount() text I/O + per-range diagnostics #4

v0.4.0 — web mount() text I/O + per-range diagnostics

v0.4.0 — web mount() text I/O + per-range diagnostics #4

Workflow file for this run

name: Publish to npm
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- name: Verify tag matches package.json version
if: github.event_name == 'release'
run: |
PKG_VERSION=$(node -p "require('./package.json').version")
TAG_VERSION="${GITHUB_REF_NAME#v}"
if [ "$PKG_VERSION" != "$TAG_VERSION" ]; then
echo "::error::Release tag ($TAG_VERSION) does not match package.json version ($PKG_VERSION)"
exit 1
fi
- run: npm publish --provenance --access public