mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 08:28:19 +01:00
ci(build): ✨ Add tag option in CI
This commit is contained in:
parent
ab36dc6616
commit
664568af38
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
|
|
@ -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 }}
|
||||||
|
|
|
||||||
|
|
@ -1,70 +1,68 @@
|
||||||
{
|
{
|
||||||
"name": "@lysand-org/federation",
|
"name": "@lysand-org/federation",
|
||||||
"displayName": "Lysand Federation",
|
"displayName": "Lysand Federation",
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"author": {
|
"author": {
|
||||||
"email": "jesse.wierzbinski@lysand.org",
|
"email": "jesse.wierzbinski@lysand.org",
|
||||||
"name": "Jesse Wierzbinski (CPlusPatch)",
|
"name": "Jesse Wierzbinski (CPlusPatch)",
|
||||||
"url": "https://cpluspatch.com"
|
"url": "https://cpluspatch.com"
|
||||||
},
|
},
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/lysand-org/api.git",
|
"url": "https://github.com/lysand-org/api.git",
|
||||||
"directory": "federation"
|
"directory": "federation"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/lysand-org/api/issues"
|
"url": "https://github.com/lysand-org/api/issues"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
{
|
{
|
||||||
"name": "Jesse Wierzbinski",
|
"name": "Jesse Wierzbinski",
|
||||||
"email": "jesse.wierzbinski@lysand.org",
|
"email": "jesse.wierzbinski@lysand.org",
|
||||||
"url": "https://cpluspatch.com"
|
"url": "https://cpluspatch.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"maintainers": [
|
||||||
|
{
|
||||||
|
"name": "Jesse Wierzbinski",
|
||||||
|
"email": "jesse.wierzbinski@lysand.org",
|
||||||
|
"url": "https://cpluspatch.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Type definitions for Lysand Federation, with validators.",
|
||||||
|
"categories": ["Other"],
|
||||||
|
"type": "module",
|
||||||
|
"engines": {
|
||||||
|
"bun": ">=1.1.8"
|
||||||
|
},
|
||||||
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"import": "./dist/index.js",
|
||||||
|
"default": "./dist/index.js",
|
||||||
|
"types": "./dist/index.d.ts"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/lysand"
|
||||||
|
},
|
||||||
|
"homepage": "https://lysand.org",
|
||||||
|
"keywords": [
|
||||||
|
"lysand",
|
||||||
|
"federation",
|
||||||
|
"api",
|
||||||
|
"typescript",
|
||||||
|
"zod",
|
||||||
|
"validation"
|
||||||
|
],
|
||||||
|
"packageManager": "bun@1.1.8",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/mime-types": "^2.1.4",
|
||||||
|
"magic-regexp": "^0.8.0",
|
||||||
|
"mime-types": "^2.1.35",
|
||||||
|
"zod": "^3.23.8",
|
||||||
|
"zod-validation-error": "^3.3.0"
|
||||||
}
|
}
|
||||||
],
|
}
|
||||||
"maintainers": [
|
|
||||||
{
|
|
||||||
"name": "Jesse Wierzbinski",
|
|
||||||
"email": "jesse.wierzbinski@lysand.org",
|
|
||||||
"url": "https://cpluspatch.com"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Type definitions for Lysand Federation, with validators.",
|
|
||||||
"categories": [
|
|
||||||
"Other"
|
|
||||||
],
|
|
||||||
"type": "module",
|
|
||||||
"engines": {
|
|
||||||
"bun": ">=1.1.8"
|
|
||||||
},
|
|
||||||
"exports": {
|
|
||||||
".": {
|
|
||||||
"import": "./dist/index.js",
|
|
||||||
"default": "./dist/index.js",
|
|
||||||
"types": "./dist/index.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/lysand"
|
|
||||||
},
|
|
||||||
"homepage": "https://lysand.org",
|
|
||||||
"keywords": [
|
|
||||||
"lysand",
|
|
||||||
"federation",
|
|
||||||
"api",
|
|
||||||
"typescript",
|
|
||||||
"zod",
|
|
||||||
"validation"
|
|
||||||
],
|
|
||||||
"packageManager": "bun@1.1.8",
|
|
||||||
"dependencies": {
|
|
||||||
"@types/mime-types": "^2.1.4",
|
|
||||||
"magic-regexp": "^0.8.0",
|
|
||||||
"mime-types": "^2.1.35",
|
|
||||||
"zod": "^3.23.8",
|
|
||||||
"zod-validation-error": "^3.3.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue