Skip to content

Commit

Permalink
ci: GITHUB_PACKAGES_TOKEN to GITHUB_TOKEN
Browse files Browse the repository at this point in the history
- in an effort to make all the repos consistent, to make templating
  easier, we're bringing any remaining repos still using
  `GITHUB_PACKAGES_TOKEN` up to date by changing it to `GITHUB_TOKEN`

ref: REL-731
  • Loading branch information
Charles Thomas authored and charlesthomas committed Mar 14, 2022
1 parent 35da994 commit feb1886
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ pipeline {
stages {
stage('Install') {
environment {
GITHUB_PACKAGES_TOKEN = credentials('github-api-token')
GITHUB_TOKEN = credentials('github-api-token')
}

steps {
sh 'mkdir -p .npm'

script {
npm.auth token: "${GITHUB_PACKAGES_TOKEN}"
npm.auth token: "${GITHUB_TOKEN}"
}

sh 'npm install'
Expand Down Expand Up @@ -111,14 +111,14 @@ pipeline {
NPM_CONFIG_CACHE = '.npm'
NPM_CONFIG_USERCONFIG = '.npm/rc'
SPAWN_WRAP_SHIM_ROOT = '.npm'
GITHUB_PACKAGES_TOKEN = credentials('github-api-token')
GITHUB_TOKEN = credentials('github-api-token')
}

steps {
sh 'mkdir -p .npm'

versioner(
token: "${GITHUB_PACKAGES_TOKEN}"
token: "${GITHUB_TOKEN}"
, dry: true
, repo: REPO
, branch: DEFAULT_BRANCH
Expand All @@ -140,7 +140,7 @@ pipeline {
}

environment {
GITHUB_PACKAGES_TOKEN = credentials('github-api-token')
GITHUB_TOKEN = credentials('github-api-token')
NPM_PUBLISH_TOKEN = credentials('npm-publish-token')
NPM_CONFIG_CACHE = '.npm'
NPM_CONFIG_USERCONFIG = '.npm/rc'
Expand All @@ -153,7 +153,7 @@ pipeline {
sh "git checkout -b ${GIT_BRANCH} origin/${GIT_BRANCH}"

versioner(
token: "${GITHUB_PACKAGES_TOKEN}"
token: "${GITHUB_TOKEN}"
, dry: false
, repo: REPO
, NPM_PUBLISH_TOKEN: "${NPM_PUBLISH_TOKEN}"
Expand Down

0 comments on commit feb1886

Please sign in to comment.