From 578fc242e467622355905f33b5ddaf8db12c28aa Mon Sep 17 00:00:00 2001 From: EndMove Date: Wed, 28 Jun 2023 14:53:19 +0200 Subject: [PATCH] fix .drone.yml and dependent packages vulnerabilities --- .drone.yml | 22 ++++------------------ README.md | 4 ++++ package-lock.json | 30 +++++++++++++++--------------- 3 files changed, 23 insertions(+), 33 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5f5c48a..42dcb7d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -61,7 +61,7 @@ depends_on: - checkup environment: - CHANGE: ${CHANGE} + VERSION: ${VERSION} steps: - name: publish-release @@ -69,25 +69,11 @@ steps: environment: GITEA_TOKEN: from_secret: gitea_token - CHANGE: ${CHANGE} commands: - git fetch --tags - npm ci - - echo $CHANGE - - npm version $CHANGE - - git push --set-upstream origin `git name-rev --name-only HEAD` - - export VERSION=$(node -p "require('./package.json').version") || echo "1.0.0" + - echo $(node -p "require('./package.json').version") - echo $VERSION + - npm version $VERSION + - git push --set-upstream origin `git name-rev --name-only HEAD` - npm publish - - name: gitea-release - image: plugins/gitea-release - settings: - api_key: - from_secret: gitea_token - base_url: https://git.endmove.eu - title: Release ${VERSION} - notes: "See the commits diff for more information's" - checksum: - - md5 - - sha1 - - sha256 diff --git a/README.md b/README.md index 6625c7d..ebf457a 100644 --- a/README.md +++ b/README.md @@ -51,3 +51,7 @@ Add the following to your `.eslintrc.cjs` file: ```js module.exports = require('@ioprojects/ui-eslint-base'); ``` + +### Note for developers + +When your pull request is merged into the **master** branch, you can promote your build on [drone.endmove.eu](https://drone.endmove.eu) to create a usable version. Use `master` as the target, and add the `VERSION` parameter with one of these values: `major | minor | patch | premajor | preminor | prepatch | prerelease`. diff --git a/package-lock.json b/package-lock.json index 8b7ba1a..61b538c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ioprojects/eslint-config", - "version": "1.0.4", + "version": "1.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@ioprojects/eslint-config", - "version": "1.0.4", + "version": "1.0.1", "license": "SEE LICENSE FILE", "dependencies": { "@typescript-eslint/eslint-plugin": "^5.60.1", @@ -24,6 +24,14 @@ "node": ">=18" } }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -1915,16 +1923,16 @@ } }, "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "type-check": "^0.4.0" }, "engines": { "node": ">= 0.8.0" @@ -2550,14 +2558,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",