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

View file

@ -32,9 +32,7 @@
} }
], ],
"description": "Type definitions for Lysand Federation, with validators.", "description": "Type definitions for Lysand Federation, with validators.",
"categories": [ "categories": ["Other"],
"Other"
],
"type": "module", "type": "module",
"engines": { "engines": {
"bun": ">=1.1.8" "bun": ">=1.1.8"