Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish npm

# Publishes notations when a release tag (v*) is pushed, through servicekit's shared
# workflow, which uses npm trusted publishing (no token). The tag must match
# package.json's version. Run it by hand (workflow_dispatch, ref = an existing
# tag) to publish an older tag that has this file.
#
# npm side, once:
# npx npm@latest trust github notations --repo panyam/notations --file publish-npm.yml --allow-publish

on:
push:
tags: ['v*']
workflow_dispatch:

permissions:
contents: read
id-token: write

jobs:
publish:
uses: panyam/servicekit/.github/workflows/npm-publish.yml@master
with:
package-manager: pnpm
node-version: '22'
test-command: pnpm run check:esm && pnpm run lint && pnpm test
Loading