From 664568af380a099fca3f3bea19e04fc0c50673e9 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Mon, 13 May 2024 21:57:53 -1000 Subject: [PATCH] ci(build): :sparkles: Add tag option in CI --- .github/workflows/publish.yml | 6 +- federation/package.json | 134 +++++++++++++++++----------------- 2 files changed, 71 insertions(+), 69 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0e89552..98cdf91 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/federation/package.json b/federation/package.json index a258bb8..9ccc748 100644 --- a/federation/package.json +++ b/federation/package.json @@ -1,70 +1,68 @@ { - "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" + "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" } - ], - "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" - } -} \ No newline at end of file +}