ci(build): Add tag option in CI

This commit is contained in:
Jesse Wierzbinski 2024-05-13 21:57:53 -10:00
parent ab36dc6616
commit 664568af38
No known key found for this signature in database
2 changed files with 71 additions and 69 deletions

View file

@ -9,6 +9,10 @@ on:
required: true
# Default to truncated commit hash
default: "0.0.0"
tag:
description: "Tag to publish"
required: true
default: "latest"
permissions:
# For provenance generation
@ -38,4 +42,4 @@ jobs:
run: 'sed -i ''s/"version": ".*"/"version": "${{ github.event.inputs.version }}"/'' package.json federation/package.json'
- name: Publish to NPM
run: bunx @morlay/bunpublish --provenance
run: bunx @morlay/bunpublish --provenance --tag ${{ github.event.inputs.tag }}