we started new project , trying ci working via appveyor. aurelia
web application need jspm
on build server.
on workstation configured jspm manually suggested @guybedford in answer below , configured authtoken in appveyor.yml script:
- jspm config registries.github.auth %jspm_github_auth_token%
currently appveyor.yml looks this, based on auto configuring section jspm
version: 1.0.{build} os: visual studio 2015 build: verbosity: detailed environment: jspm_github_auth_token:#token jspm registry export github (locally)# install: - ps: set-culture nl-nl - ps: install-product node $env:nodejs_version - cd src\web - npm uninstall jspm -g - npm install -g jspm - npm install -g gulp - npm install - jspm config registries.github.auth %jspm_github_auth_token% - jspm config registries.github.maxreposize 0 - jspm registry export github #output see registry looks - jspm install -y - gulp build - cd ..\.. nuget: account_feed: true before_build: - dnvm install -r clr -arch x86 1.0.0-rc1-update1 - dnu restore - nuget restore
the jspm install - y
command fails error: unauthorized response github api
.
how configure github credentials jspm on appveyor?
it best take token jspm registry export github
after configuring credentials locally in order use exact same algorithm jspm instead of doing manual encoding.
if want manual encoding, auth token takes value of new buffer(encodeuricomponent(username) + ':' + encodeuricomponent(password)).tostring('base64')
.
Comments
Post a Comment