From 391c6bd45d0a02512847da4199c8c19050d0f2e8 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 4 Jul 2023 09:33:18 +0200 Subject: [PATCH] fix(core): update --- .gitlab-ci.yml | 46 +++++++++++++++++++++------------------- package.json | 2 +- readme.md | 1 - ts/00_commitinfo_data.ts | 2 +- 4 files changed, 26 insertions(+), 25 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b14b4ac..c96d0c9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,29 +12,38 @@ stages: - release - metadata +before_script: + - pnpm install -g pnpm + - pnpm install -g @shipzone/npmci + - npmci npm prepare + # ==================== # security stage # ==================== -mirror: +# ==================== +# security stage +# ==================== +auditProductionDependencies: + image: registry.gitlab.com/hosttoday/ht-docker-node:npmci stage: security script: - - npmci git mirror + - npmci command npm config set registry https://registry.npmjs.org + - npmci command pnpm audit --audit-level=high --prod tags: - lossless - docker - - notpriv + allow_failure: true -snyk: +auditDevDependencies: + image: registry.gitlab.com/hosttoday/ht-docker-node:npmci stage: security script: - - npmci npm prepare - - npmci command npm install -g snyk - - npmci command npm install --ignore-scripts - - npmci command snyk test + - npmci command npm config set registry https://registry.npmjs.org + - npmci command pnpm audit --audit-level=high --dev tags: - lossless - docker - - notpriv + allow_failure: true # ==================== # test stage @@ -43,28 +52,22 @@ snyk: testStable: stage: test script: - - npmci npm prepare - npmci node install stable - npmci npm install - npmci npm test coverage: /\d+.?\d+?\%\s*coverage/ tags: - - lossless - docker - - priv testBuild: stage: test script: - - npmci npm prepare - npmci node install stable - npmci npm install - - npmci command npm run build + - npmci npm build coverage: /\d+.?\d+?\%\s*coverage/ tags: - - lossless - docker - - notpriv release: stage: release @@ -84,11 +87,12 @@ release: codequality: stage: metadata allow_failure: true + only: + - tags script: - - npmci command npm install -g tslint typescript + - npmci command npm install -g typescript - npmci npm prepare - npmci npm install - - npmci command "tslint -c tslint.json ./ts/**/*.ts" tags: - lossless - docker @@ -108,11 +112,9 @@ trigger: pages: stage: metadata script: - - npmci node install lts - - npmci command npm install -g @gitzone/tsdoc - - npmci npm prepare + - npmci node install stable - npmci npm install - - npmci command tsdoc + - npmci command npm run buildDocs tags: - lossless - docker diff --git a/package.json b/package.json index 66c5ef6..65e9cb3 100644 --- a/package.json +++ b/package.json @@ -46,4 +46,4 @@ "browserslist": [ "last 1 chrome versions" ] -} +} \ No newline at end of file diff --git a/readme.md b/readme.md index 5e2fc59..b6fe905 100644 --- a/readme.md +++ b/readme.md @@ -37,7 +37,6 @@ For further information read the linked docs at the top of this README. We are always happy for code contributions. If you are not the code contributing type that is ok. + Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: [Contribute monthly :)](https://lossless.link/contribute) - ## Contribution We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 745bd0c..9f1eb90 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@mojoio/elasticsearch', - version: '1.0.32', + version: '1.0.33', description: 'log to elasticsearch in a kibana compatible format' }