diff --git a/build/ci/Jenkinsfile b/build/ci/Jenkinsfile index ec4a013..d322aa1 100644 --- a/build/ci/Jenkinsfile +++ b/build/ci/Jenkinsfile @@ -27,7 +27,7 @@ pipeline { } stage('Build') { steps { - sh """docker build -f build/ci/Dockerfile -t $TAG --build-arg GITHUB_ACCESS_TOKEN="$GITHUB_ACCESS_TOKEN" .""" + sh """docker build -f build/ci/Dockerfile -t $TAG --build-arg GITHUB_ACCESS_TOKEN="$GITHUB_ACCESS_TOKEN" .""" } } stage('Lint') { @@ -47,9 +47,11 @@ pipeline { } } steps { - sh """ - docker run --rm --entrypoint /bin/bash $TAG -c "npm run lerna publish -- --dist-tag latest --canary --no-git-tag-version --yes --preid snapshot" - """ + withCredentials([string(credentialsId: 'NEXUS_BASIC_AUTH_BASE64', variable: 'nexusAuth')]) { + sh """ + docker run --rm --entrypoint /bin/bash $TAG -c 'build/ci/publish ${nexusAuth}' + """ + } } } } diff --git a/build/ci/publish b/build/ci/publish new file mode 100755 index 0000000..75f90e7 --- /dev/null +++ b/build/ci/publish @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +npm run lerna publish -- --dist-tag latest --canary --no-git-tag-version --no-git-reset --yes --preid snapshot + +for dir in packages/*/ ; do + printf "registry = https://repositories.mrf.io/nexus/repository/npm-internal/\nalways-auth=true\n_auth=${1}" > "${dir}.npmrc" +done + +npm config set registry https://repositories.mrf.io/nexus/repository/npm-internal/ +npm config set https://repositories.mrf.io/nexus/repository/npm-internal/:_authToken $1 +npm config set strict-ssl false +git config --global user.email 'jenkins@elpilas' +git config --global user.name 'jenkins' +npm config list && git add . && git commit -m 'new version' +git status + +npm run lerna publish -- from-package --dist-tag latest --yes --registry https://repositories.mrf.io/nexus/repository/npm-internal/ diff --git a/package-lock.json b/package-lock.json index 328e9f2..17c0705 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3293,6 +3293,14 @@ "@typescript-eslint/experimental-utils": "^1.13.0" } }, + "eslint-plugin-no-async-foreach": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-async-foreach/-/eslint-plugin-no-async-foreach-0.1.1.tgz", + "integrity": "sha512-SXiJCpXWyNijyT8F4K51oXwqnYv3G2JTHMhg+qE/BcWyj7E395pDScmHIP4NkeKi8B650BQBIMOLgMI47Mj26A==", + "requires": { + "requireindex": "~1.1.0" + } + }, "eslint-plugin-node": { "version": "11.0.0", "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.0.0.tgz", @@ -3356,6 +3364,11 @@ } } }, + "eslint-plugin-react-hooks": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.5.1.tgz", + "integrity": "sha512-Y2c4b55R+6ZzwtTppKwSmK/Kar8AdLiC2f9NADCuxbcTgPPg41Gyqa6b9GppgXSvCtkRw43ZE86CT5sejKC6/g==" + }, "eslint-plugin-vue": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-6.2.1.tgz", @@ -6830,6 +6843,11 @@ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, + "requireindex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/requireindex/-/requireindex-1.1.0.tgz", + "integrity": "sha1-5UBLgVV+91225JxacgBIk/4D4WI=" + }, "resolve": { "version": "1.13.1", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.13.1.tgz", diff --git a/packages/eslint-config-js/index.js b/packages/eslint-config-js/index.js index 1899b3b..2359ebc 100644 --- a/packages/eslint-config-js/index.js +++ b/packages/eslint-config-js/index.js @@ -165,3 +165,4 @@ module.exports = { } }] }; + diff --git a/packages/eslint-config-react/package-lock.json b/packages/eslint-config-react/package-lock.json index cf51f3f..256e4ce 100644 --- a/packages/eslint-config-react/package-lock.json +++ b/packages/eslint-config-react/package-lock.json @@ -165,11 +165,6 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, - "eslint-plugin-react-hooks": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.5.0.tgz", - "integrity": "sha512-bzvdX47Jx847bgAYf0FPX3u1oxU+mKU8tqrpj4UX9A96SbAmj/HVEefEy6rJUog5u8QIlOPTKZcBpGn5kkKfAQ==" - }, "eslint-visitor-keys": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz", diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index d412749..9935ba7 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -20,3 +20,4 @@ "prettier": "^1.19.1" } } +