mirror of
https://github.com/obsqrbtz/goose-highlighter.git
synced 2026-04-09 04:29:09 +03:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b04e6efd38 | ||
| e35863d10e | |||
| fc710fce5d | |||
| 726e7f0826 |
@@ -7,6 +7,9 @@
|
||||
"@semantic-release/release-notes-generator",
|
||||
"@semantic-release/changelog",
|
||||
[
|
||||
[
|
||||
"./scripts/semantic-prepare.js"
|
||||
],
|
||||
"@semantic-release/git",
|
||||
{
|
||||
"assets": [
|
||||
|
||||
31
CHANGELOG.md
31
CHANGELOG.md
@@ -1,3 +1,34 @@
|
||||
# [1.3.0](https://github.com/obsqrbtz/goose-highlighter/compare/v1.2.0...v1.3.0) (2025-06-23)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* force version bump test ([fc710fc](https://github.com/obsqrbtz/goose-highlighter/commit/fc710fce5d463cb2b6dd2675ed5bf295a7ea8bb8))
|
||||
* semantic-prepare.js ([726e7f0](https://github.com/obsqrbtz/goose-highlighter/commit/726e7f082659545f9b37d021dd6f4cbbd43ce1ad))
|
||||
* trigger release ([e35863d](https://github.com/obsqrbtz/goose-highlighter/commit/e35863d10ea51f55449ac41d68f931d3f906e7d1))
|
||||
|
||||
# [1.3.0](https://github.com/obsqrbtz/goose-highlighter/compare/v1.2.0...v1.3.0) (2025-06-23)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* force version bump test ([fc710fc](https://github.com/obsqrbtz/goose-highlighter/commit/fc710fce5d463cb2b6dd2675ed5bf295a7ea8bb8))
|
||||
* semantic-prepare.js ([726e7f0](https://github.com/obsqrbtz/goose-highlighter/commit/726e7f082659545f9b37d021dd6f4cbbd43ce1ad))
|
||||
|
||||
# [1.3.0](https://github.com/obsqrbtz/goose-highlighter/compare/v1.2.0...v1.3.0) (2025-06-23)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* semantic-prepare.js ([726e7f0](https://github.com/obsqrbtz/goose-highlighter/commit/726e7f082659545f9b37d021dd6f4cbbd43ce1ad))
|
||||
|
||||
# [1.3.0](https://github.com/obsqrbtz/goose-highlighter/compare/v1.2.0...v1.3.0) (2025-06-23)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* semantic-prepare.js ([726e7f0](https://github.com/obsqrbtz/goose-highlighter/commit/726e7f082659545f9b37d021dd6f4cbbd43ce1ad))
|
||||
|
||||
# [1.2.0](https://github.com/obsqrbtz/goose-highlighter/compare/v1.1.1...v1.2.0) (2025-06-23)
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Goose Highlighter",
|
||||
"version": "1.1.1",
|
||||
"version": "1.3.0",
|
||||
"description": "Highlight text on web pages",
|
||||
"default_locale": "en",
|
||||
"permissions": [
|
||||
|
||||
12
scripts/semantic-prepare.js
Normal file
12
scripts/semantic-prepare.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
module.exports = async ({ nextRelease }) => {
|
||||
const manifestPath = path.resolve(__dirname, "../manifest.json");
|
||||
const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf8"));
|
||||
|
||||
manifest.version = nextRelease.version;
|
||||
|
||||
fs.writeFileSync(manifestPath, JSON.stringify(manifest, null, 2));
|
||||
console.log(`✅ Updated manifest.json to version ${nextRelease.version}`);
|
||||
};
|
||||
@@ -1,14 +0,0 @@
|
||||
const fs = require("fs");
|
||||
const path = "./manifest.json";
|
||||
|
||||
const version = process.env.npm_package_version;
|
||||
if (!version) {
|
||||
console.error("Version not found in npm_package_version.");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const manifest = JSON.parse(fs.readFileSync(path, "utf8"));
|
||||
manifest.version = version;
|
||||
fs.writeFileSync(path, JSON.stringify(manifest, null, 2));
|
||||
|
||||
console.log(`Updated manifest.json to version ${version}`);
|
||||
Reference in New Issue
Block a user