This repository was archived by the owner on Mar 12, 2025. It is now read-only.
File tree 2 files changed +68
-1
lines changed
2 files changed +68
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Javascript Node CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-javascript/ for more details
4
+ #
5
+ version : 2
6
+
7
+ defaults : &defaults
8
+ working_directory : ~/repo
9
+ docker :
10
+ - image : circleci/node:8.9.1
11
+
12
+ jobs :
13
+ test :
14
+ << : *defaults
15
+ steps :
16
+ - checkout
17
+
18
+ - restore_cache :
19
+ keys :
20
+ - v1-dependencies-
21
+ # fallback to using the latest cache if no exact match is found
22
+ - v1-dependencies-
23
+
24
+ - run : npm install
25
+ - run :
26
+ name : Build w/ Babel
27
+ command : npm run build
28
+ - run :
29
+ name : Run tests
30
+ command : npm test
31
+
32
+ - save_cache :
33
+ paths :
34
+ - node_modules
35
+ key : v1-dependencies-
36
+
37
+ - persist_to_workspace :
38
+ root : ~/repo
39
+ paths : .
40
+ deploy :
41
+ << : *defaults
42
+ steps :
43
+ - attach_workspace :
44
+ at : ~/repo
45
+ - run :
46
+ name : Authenticate with registry
47
+ command : echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
48
+ - run :
49
+ name : Publish package
50
+ command : npm publish
51
+
52
+ workflows :
53
+ version : 2
54
+ test-deploy :
55
+ jobs :
56
+ - test :
57
+ filters :
58
+ tags :
59
+ only : /^v.*/
60
+ - deploy :
61
+ requires :
62
+ - test
63
+ filters :
64
+ tags :
65
+ only : /^v.*/
66
+ branches :
67
+ ignore : /.*/
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " topcoder-submission-api-wrapper" ,
2
+ "name" : " @topcoder-platform/ topcoder-submission-api-wrapper" ,
3
3
"version" : " 1.0.0" ,
4
4
"description" : " Wrapper for Topcoder Submission API" ,
5
5
"main" : " index.js" ,
You can’t perform that action at this time.
0 commit comments