From 601773b9041928994c0bc0f25e5b0728f055f3b0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 15 Jun 2023 20:52:58 -0400 Subject: [PATCH] chore: add semantic-release --- .releaserc | 32 ++++++++++++++++++++++ package.json | 75 ++++++++++++++++++++++++++++++---------------------- 2 files changed, 75 insertions(+), 32 deletions(-) create mode 100644 .releaserc diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000..23831b4 --- /dev/null +++ b/.releaserc @@ -0,0 +1,32 @@ +{ + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/changelog", + [ + "@semantic-release/npm", + { + "npmPublish": false + } + ], + [ + "@semantic-release/git", + { + "assets": [ + "package.json" + ] + } + ] + ], + "branches": [ + "master", + { + name: "develop", + prerelease: true + }, + { + name: "develop-*", + prerelease: true + }, + ] +} diff --git a/package.json b/package.json index 0ff1840..feed3c7 100644 --- a/package.json +++ b/package.json @@ -1,35 +1,46 @@ { - "name": "@lumeweb/libportal", - "version": "0.1.0", - "main": "lib/index.js", - "module": "lib/index.mjs", - "types": "lib/index.d.ts", - "exports": { - ".": { - "require": "./lib/index.js", - "import": "./lib/index.mjs" - }, - "./package.json": "./package.json" + "name": "@lumeweb/libportal", + "version": "0.0.0-development", + "main": "lib/index.js", + "module": "lib/index.mjs", + "types": "lib/index.d.ts", + "repository": { + "type": "git", + "url": "gitea@git.lumeweb.com:LumeWeb/relay.git" + }, + "exports": { + ".": { + "require": "./lib/index.js", + "import": "./lib/index.mjs" }, - "devDependencies": { - "presetter": "^3.5.5", - "presetter-preset-essentials": "^3.5.5", - "presetter-preset-hybrid": "^3.5.5" - }, - "readme": "ERROR: No README data found!", - "_id": "@lumeweb/libportal@0.1.0", - "scripts": { - "prepare": "presetter bootstrap" - }, - "dependencies": { - "@noble/curves": "^1.1.0", - "@noble/hashes": "^1.3.1", - "detect-node": "^2.1.0", - "multiformats": "^11.0.2", - "node-fetch": "^3.3.1", - "p-defer": "^4.0.0", - "stream-to-blob": "^2.0.1", - "tus-js-client": "^3.1.0", - "web-streams-polyfill": "^3.2.1" - } + "./package.json": "./package.json" + }, + "devDependencies": { + "@semantic-release/changelog": "^6.0.3", + "@semantic-release/commit-analyzer": "^10.0.1", + "@semantic-release/git": "^10.0.1", + "@semantic-release/npm": "^10.0.4", + "@semantic-release/release-notes-generator": "^11.0.3", + "presetter": "^3.5.5", + "presetter-preset-essentials": "^3.5.5", + "presetter-preset-hybrid": "^3.5.5", + "semantic-release": "^21.0.5" + }, + "readme": "ERROR: No README data found!", + "_id": "@lumeweb/libportal@0.1.0", + "scripts": { + "prepare": "presetter bootstrap", + "semantic-release": "semantic-release" + }, + "dependencies": { + "@noble/curves": "^1.1.0", + "@noble/hashes": "^1.3.1", + "detect-node": "^2.1.0", + "multiformats": "^11.0.2", + "node-fetch": "^3.3.1", + "p-defer": "^4.0.0", + "stream-to-blob": "^2.0.1", + "tus-js-client": "^3.1.0", + "web-streams-polyfill": "^3.2.1" + } }