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

Commit

Permalink
BUILD-2298 Fix promotion (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomverin authored Jan 11, 2023
1 parent e987f55 commit 07ec93d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
runs-on: ubuntu-latest
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
REPOX_URL: "https://repox.jfrog.io/artifactory"
NPM_REPOSITORY: "sonarsource-npm-public"
SCOPE: ""
PACKAGE: "eslint-plugin-sonarjs"
Expand All @@ -20,6 +19,7 @@ jobs:
uses: SonarSource/vault-action-wrapper@d1c1ab4ca5ad07fd9cdfe1eff038a39673dfca64 # tag=2.4.2-1
with:
secrets:
development/kv/data/repox url | repox_url
development/artifactory/token/SonarSource-eslint-plugin-sonarjs-qa-deployer access_token | qa_deployer_access_token;
development/artifactory/token/SonarSource-eslint-plugin-sonarjs-promoter access_token | promoter_access_token;
development/kv/data/npmjs sonartech_npm_token | npm_token;
Expand All @@ -41,11 +41,10 @@ jobs:
npm publish
jfrog rt npm-publish --build-name=eslint-plugin-sonarjs --build-number=${{ github.event.release.tag_name }}
jfrog rt build-publish eslint-plugin-sonarjs ${{ github.event.release.tag_name }}
- name: Setup JFrog for promotion
uses: SonarSource/jfrog-setup-wrapper@eb712d76540e5d1f3756303f30387657fb204e52 # tag=2.4.1-1
with:
jfrogAccessToken: ${{ fromJSON(steps.secrets.outputs.vault).promoter_access_token }}
- name: Promote npm package
env:
PROMOTER_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).promoter_access_token }}
REPOX_URL: ${{ fromJSON(steps.secrets.outputs.vault).repox_url }}
run: |
jfrog rt bpr --status it-passed eslint-plugin-sonarjs ${{ github.event.release.tag_name }} sonarsource-npm-public-builds
jfrog rt bpr --status released eslint-plugin-sonarjs ${{ github.event.release.tag_name }} sonarsource-npm-public-releases
jfrog rt bpr --access-token $PROMOTER_TOKEN https://repox.jfrog.io/artifactory --status it-passed eslint-plugin-sonarjs ${{ github.event.release.tag_name }} sonarsource-npm-public-builds
jfrog rt bpr --access-token $PROMOTER_TOKEN https://repox.jfrog.io/artifactory --status released eslint-plugin-sonarjs ${{ github.event.release.tag_name }} sonarsource-npm-public-releases

0 comments on commit 07ec93d

Please sign in to comment.