fix .drone.yml and dependent packages vulnerabilities (#2)
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/promote/master Build is failing Details

Reviewed-on: #2
Co-authored-by: EndMove <superjeremi1302@gmail.com>
Co-committed-by: EndMove <superjeremi1302@gmail.com>
This commit is contained in:
Jérémi N ‘EndMove’ 2023-06-28 15:53:46 +02:00 committed by Jérémi N ‘EndMove’
parent c1329ee0ea
commit 5b377f41a5
3 changed files with 23 additions and 33 deletions

View File

@ -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

View File

@ -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`.

30
package-lock.json generated
View File

@ -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",