From 03fa3457089ad66cce52d2c8134c23c51aa7b6c4 Mon Sep 17 00:00:00 2001 From: Louis-C7 Date: Wed, 30 Oct 2024 16:48:54 +0800 Subject: [PATCH 1/2] chore: add release-it plugin Signed-off-by: Louis-C7 --- .release-it.json | 23 +++++++++++++++++++++++ package.json | 13 +++++++++---- 2 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 .release-it.json diff --git a/.release-it.json b/.release-it.json new file mode 100644 index 0000000..6fc83af --- /dev/null +++ b/.release-it.json @@ -0,0 +1,23 @@ +{ + "github": { + "release": false + }, + "git": { + "commitArgs": ["-S"], + "commitMessage": "release: @react-native-ohos/react-native-map-linking@${version}", + "push": false + }, + "npm": { + "publish": true + }, + "hooks": { + "after:release": "git push origin HEAD" + }, + "version": "patch", + "plugins": { + "@release-it/conventional-changelog": { + "preset": "angular", + "infile": "CHANGELOG.md" + } + } + } \ No newline at end of file diff --git a/package.json b/package.json index a485d43..ddd34f9 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,12 @@ "map", "linking" ], - "author": { - "name": "starlight36", - "url": "https://github.com/starlight36" + "scripts": { + "release": "release-it" + }, + "publishConfig": { + "access": "public", + "@shopify:registry": "https://registry.npmjs.org/" }, "repository": { "url": "https://gitee.com/openharmony-sig/rntpc_react-native-map-linking" @@ -21,8 +24,10 @@ }, "license": "MIT", "devDependencies": { + "@release-it/conventional-changelog": "^9.0.1", "react": "^15.1.0", - "react-native": "^0.28.0" + "react-native": "^0.28.0", + "release-it": "^17.10.0" }, "harmony": { "alias": "react-native-map-linking" -- Gitee From dc8d7392c18ae6defaaeb408646078cd5ef14d5d Mon Sep 17 00:00:00 2001 From: Louis-C7 Date: Wed, 30 Oct 2024 17:29:46 +0800 Subject: [PATCH 2/2] release: @react-native-ohos/react-native-map-linking@1.0.2 Signed-off-by: Louis-C7 --- CHANGELOG.md | 8 ++++++++ package.json | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..7a6431d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,8 @@ + + +## [1.0.2](https://gitee.com/openharmony-sig/rntpc_react-native-map-linking/compare/2024-10-14_14_50_12/github.com/starlight36/react-native-map-linking/master...1.0.2) (2024-10-30) + + +### Features + +* add HarmonyOS NEXT support ([e1887a1](https://gitee.com/openharmony-sig/rntpc_react-native-map-linking/commits/e1887a1fd0ad784a9ba349d0199adc27477e5752)) diff --git a/package.json b/package.json index ddd34f9..7639139 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-ohos/react-native-map-linking", - "version": "1.0.1", + "version": "1.0.2", "description": "Linking to map for React Native", "main": "index.js", "keywords": [ @@ -13,8 +13,7 @@ "release": "release-it" }, "publishConfig": { - "access": "public", - "@shopify:registry": "https://registry.npmjs.org/" + "access": "public" }, "repository": { "url": "https://gitee.com/openharmony-sig/rntpc_react-native-map-linking" -- Gitee