mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 08:28:19 +01:00
refactor(build): 👷 Make CI NPM publish only be run manually
This commit is contained in:
parent
f8ef879711
commit
b4c2393e7f
13
.github/workflows/publish.yml
vendored
13
.github/workflows/publish.yml
vendored
|
|
@ -1,12 +1,14 @@
|
|||
name: Build & Publish NPM Package
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags: ["v*.*.*"]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: "Version to publish"
|
||||
required: true
|
||||
# Default to truncated commit hash
|
||||
default: "0.0.0"
|
||||
|
||||
jobs:
|
||||
# Build job
|
||||
|
|
@ -27,6 +29,9 @@ jobs:
|
|||
|
||||
- name: Build
|
||||
run: bun run build
|
||||
|
||||
- name: Change version in package.json to ${{ github.event.inputs.version }}, defaulting to the truncated commit hash
|
||||
run: sed -i "s/\"version\": \".*\"/\"version\": \"${{ github.event.inputs.version }}\"/" package.json
|
||||
|
||||
- name: Publish to NPM
|
||||
run: bunx @morlay/bunpublish --provenance
|
||||
|
|
|
|||
|
|
@ -1,68 +1,70 @@
|
|||
{
|
||||
"name": "@lysand-org/federation",
|
||||
"displayName": "Lysand Federation",
|
||||
"version": "3.0.0",
|
||||
"author": {
|
||||
"email": "jesse.wierzbinski@lysand.org",
|
||||
"name": "Jesse Wierzbinski (CPlusPatch)",
|
||||
"url": "https://cpluspatch.com"
|
||||
},
|
||||
"readme": "README.md",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/lysand-org/api.git",
|
||||
"directory": "federation"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/lysand-org/api/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Jesse Wierzbinski",
|
||||
"email": "jesse.wierzbinski@lysand.org",
|
||||
"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"
|
||||
"name": "@lysand-org/federation",
|
||||
"displayName": "Lysand Federation",
|
||||
"version": "3.0.0",
|
||||
"author": {
|
||||
"email": "jesse.wierzbinski@lysand.org",
|
||||
"name": "Jesse Wierzbinski (CPlusPatch)",
|
||||
"url": "https://cpluspatch.com"
|
||||
},
|
||||
"readme": "README.md",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/lysand-org/api.git",
|
||||
"directory": "federation"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/lysand-org/api/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Jesse Wierzbinski",
|
||||
"email": "jesse.wierzbinski@lysand.org",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue