forked from BBC-archive/psammead
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (24 loc) · 847 Bytes
/
Makefile
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
none:
@ echo Please specify a target
install:
npm --version; node --version;
npm run ci:packages;
code-coverage-before-build:
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter;
chmod +x ./cc-test-reporter;
./cc-test-reporter before-build;
code-coverage-after-build:
./cc-test-reporter after-build -t lcov;
tests:
npm run build;
npm test;
storybook:
git remote set-url origin "https://${GITHUB_TOKEN}@github.com/bbc/psammead.git"
# These user config values are needed to avoid error being throw.
# These arnt used for authentication however, as it uses the provided github token.
git config user.email "[email protected]"
git config user.name "BBC News CI"
npm run deploy-storybook;
publish:
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
npm run publish;