ci: get CI ready for publishing the npm package

This commit is contained in:
Rainer Killinger
2023-01-13 18:53:52 +01:00
parent c36c47267b
commit 3d53615447
5 changed files with 53 additions and 66 deletions

View File

@@ -1,12 +1,23 @@
{
"name": "@openstapps/prettier-config",
"version": "1.0.0",
"version": "0.0.1",
"description": "StApps Prettier Config",
"main": "index.json",
"author": "Thea Schöbl <dev@theaninova.de>",
"license": "GPL-3.0-only",
"contributors": [
"Rainer Killinger <mail-openstapps@killinger.co>"
],
"repository": {
"type": "git",
"url": "git@gitlab.com:openstapps/prettier-config.git"
},
"author": "Thea Schöbl <dev@theaninova.de>",
"license": "GPL-3.0-only"
"scripts": {
"changelog": "npx conventional-changelog-cli -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
"test": "npx prettier --config index.json --check \"test/*.js\"",
"prepublishOnly": "npm test",
"postversion": "npm run changelog",
"preversion": "npm run prepublishOnly",
"push": "git push && git push origin \"v$npm_package_version\""
}
}