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
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# .github/workflows/release.yml
#
# Publishes to npm via OIDC Trusted Publishing when a GitHub Release is published.
# Publishes to npm via OIDC Trusted Publishing when a version tag is pushed.
# Requires: trusted publisher configured on npmjs.com for this package, pointing at
# this repo, this workflow file (release.yml), and (optionally) the "npm-publish" environment.
#
Expand All @@ -9,8 +9,10 @@
name: Publish to npm

on:
release:
types: [published]
# Publish from the tag push so npm trusted publishing receives a
# refs/tags/vX.Y.Z SourceRepositoryRef in the provenance certificate.
push:
tags: ['v*']
# Allow manual re-runs if a release fails partway through
workflow_dispatch:

Expand Down