diff --git a/manifest.json b/manifest.json index 742f345..57398df 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "/usr/space", - "version": "0.7", + "version": "0.7.0", "description": "WebExtension for the Hacker-/Maker-Space /usr/space", "icons": { "48": "icons/favicon.svg", diff --git a/package.json b/package.json index 88f575c..789ffb4 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,13 @@ "devDependencies": { "web-ext-types": "^3.2.1" }, + "scripts": { + "copy-version": "sed -i 's/^\t\"version\": \".*\",$/\t\"version\": \"'$(rg '^\t\"version\": \"(.+)\",$' -r '$1' < package.json)'\",/' manifest.json", + "test": "echo \"Error: no test specified\" && exit 0", + "preversion": "npm test", + "version": "npm run copy-version && git add -u", + "postversion": "web-ext build" + }, "repository": { "type": "git", "url": "https://gitea.usrspace.at/XimeX/usrspace-browser-addon"