forked from verdaccio/verdaccio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
59 lines (58 loc) · 1.58 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
machine:
environment:
YARN_VERSION: 1.6.0
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: 9
dependencies:
pre:
- git config --global user.email "[email protected]"
- git config --global user.name "Verdaccio bot 🤖 for Deployments"
- 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
- |
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
fi
- nvm install 6
- nvm install 8
- nvm install 10
cache_directories:
- ~/.yarn
- ~/.cache/yarn
- "node_modules"
override:
- yarn install --no-progress
test:
override:
- yarn run pre:ci
- nvm alias default 6
- yarn run test
- nvm alias default 8
- yarn run test
- nvm alias default 9
- yarn run test
- nvm alias default 10
- yarn run test
- yarn run test:e2e
- yarn run coverage:publish
- echo "machine github.com login verdacciobot password $GITHUB_TOKEN" > ~/.netrc
- cd website && yarn install && GIT_USER=verdacciobot USE_SSH=false yarn run publish-gh-pages
deployment:
production:
tag: /(v)?[0-9]+(\.[0-9]+)*/
commands:
- ./scripts/publish.sh
alpha-release:
tag: /.*-alpha.*/
commands:
- ./scripts/alpha-publish.sh
beta-release:
tag: /.*-beta.*/
commands:
- ./scripts/beta-publish.sh
general:
branches:
ignore:
- gh-pages
- l10n_master
- /release\/.*/