Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit 1b8b84e

Browse files
authored
Update deploy to repox (#214)
* Update npmrc creation * Remove useless temp file * Use correct api key for repox deployer and correct version syntax
1 parent 428278a commit 1b8b84e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.cirrus.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ gcp_credentials: ENCRYPTED[!17c59813193e86cc337bce848b358412b90f50bc5fe1b8b39d36
33
env:
44
GITHUB_TOKEN: ENCRYPTED[!f272985ea5b49b3cf9c414b98de6a8e9096be47bfcee52f33311ba3131a2af637c1b956f49585b7757dd84b7c030233a!]
55
SONAR_TOKEN: ENCRYPTED[!4e5894b7b32f763db69e70fb56188d3f42539db36374b1f97c425f37a7ecd441c28a9da267c461b9cc8fb53124f14c22!]
6-
NPM_DEPLOYER_AUTH: ENCRYPTED[!d484e19f33c9ce63b165f70e414a33b1ac6c215a126791aacbf8059626caf0fd8a78e999a20af5c1a4ba01c0b0247921!]
6+
REPOX_QA_DEPLOYER_API_KEY: ENCRYPTED[!d484e19f33c9ce63b165f70e414a33b1ac6c215a126791aacbf8059626caf0fd8a78e999a20af5c1a4ba01c0b0247921!]
77
# Use bash (instead of sh on linux or cmd.exe on windows)
88
CIRRUS_SHELL: bash
99

@@ -31,11 +31,9 @@ plugin_qa_task:
3131
memory: 8G
3232
env:
3333
CIRRUS_CLONE_DEPTH: 10
34-
SONARSOURCE_QA: true
35-
npmrc_file:
36-
path: ${HOME}/.npmrc
37-
variable_name: NPM_DEPLOYER_AUTH
34+
SONARSOURCE_QA: true
3835
script:
36+
- curl -urepox-qa-deployer:${REPOX_QA_DEPLOYER_API_KEY} https://repox.jfrog.io/artifactory/api/npm/auth > .npmrc
3937
- init_git_submodules -r
4038
- yarn
4139
- yarn typecheck

scripts/analyze_and_publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -euo pipefail
1010

1111
export VERSION=$(grep version package.json | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g')
1212
source cirrus-env BUILD
13-
npm version --no-git-tag-version --allow-same-version $VERSION+$BUILD_NUMBER
13+
npm version --no-git-tag-version --allow-same-version $VERSION-$BUILD_NUMBER
1414

1515
sonar-scanner \
1616
-Dsonar.organization=sonarsource \

0 commit comments

Comments
 (0)