Skip to content

Merge pull request #5 from teaql/20260814T012000-fix-npm11-release #2

Merge pull request #5 from teaql/20260814T012000-fix-npm11-release

Merge pull request #5 from teaql/20260814T012000-fix-npm11-release #2

Workflow file for this run

name: Publish TypeScript package
on:
push:
tags:
- "typescript-v*"
jobs:
publish:
runs-on: ubuntu-latest
environment: npm
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "24"
registry-url: https://registry.npmjs.org
cache: npm
- run: npm ci
- name: Verify tag matches package version
run: test "${GITHUB_REF_NAME#typescript-v}" = "$(node -p 'require("./package.json").version')"
- run: npm test
- run: npm run build
- run: npm publish --access public