File tree Expand file tree Collapse file tree 2 files changed +62
-9
lines changed Expand file tree Collapse file tree 2 files changed +62
-9
lines changed Original file line number Diff line number Diff line change 2
2
# See: https://circleci.com/docs/2.0/configuration-reference
3
3
version : 2.1
4
4
5
+ executors :
6
+ browser-executor :
7
+ docker :
8
+ - image : circleci/node:16-browsers
9
+ working_directory : ~/repo
5
10
# Define a job to be invoked later in a workflow.
6
11
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
7
12
jobs :
8
- say-hello :
9
- # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
10
- # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
11
- docker :
12
- - image : cimg/base:stable
13
+ build-plugin :
14
+ executor : browser-executor
13
15
# Add steps to the job
14
16
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
15
17
steps :
16
18
- checkout
19
+ - restore_cache :
20
+ keys :
21
+ - v1-dependencies-{{ checksum "package-lock.json" }}
22
+ - run :
23
+ name : Install
24
+ command : npm ci
25
+ - save_cache :
26
+ paths :
27
+ - node_modules
28
+ key : v1-dependencies-{{ checksum "package-lock.json" }}
29
+ - run :
30
+ name : Audit
31
+ command : npm audit --audit-level=low
32
+ - run :
33
+ name : Test
34
+ command : npm test
35
+ - run :
36
+ name : Build
37
+ command : npm run prepack
38
+ - persist_to_workspace :
39
+ root : .
40
+ paths : [.]
41
+ deploy-plugin :
42
+ executor : browser-executor
43
+ steps :
44
+ - attach_workspace :
45
+ at : ~/repo
46
+ - run :
47
+ name : Authenticate with registry
48
+ command : echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > .npmrc
17
49
- run :
18
- name : " Say hello "
19
- command : " echo Hello, World! "
50
+ name : Publish package
51
+ command : npm publish --access public
20
52
21
53
# Invoke jobs via workflows
22
54
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
23
55
workflows :
24
- say-hello-workflow :
56
+ test-deploy :
25
57
jobs :
26
- - say-hello
58
+ - build-plugin
59
+ - hold :
60
+ type : approval
61
+ requires :
62
+ - build-plugin
63
+ filters :
64
+ # hold only on version tags
65
+ tags :
66
+ only : /^v.*/
67
+ branches :
68
+ ignore : /.*/
69
+ - deploy-plugin :
70
+ requires :
71
+ - hold
72
+ filters :
73
+ # deploy only on version tags
74
+ tags :
75
+ only : /^v.*/
76
+ branches :
77
+ ignore : /.*/
Original file line number Diff line number Diff line change 1
1
# @fullstory/segment-react-native-plugin-fullstory
2
2
3
+ [ ![ CircleCI] ( https://circleci.com/gh/fullstorydev/segment-react-native-plugin-fullstory.svg?style=svg )] ( https://circleci.com/gh/fullstorydev/segment-react-native-plugin-fullstory )
4
+
3
5
` EnrichmentPlugin ` for [ FullStory] ( https://www.fullstory.com/ ) . This is a segment analytics plugin that wraps [ ` @fullstory/react-native ` ] ( https://github.com/fullstorydev/fullstory-react-native ) .
4
6
5
7
## Prerequisite
You can’t perform that action at this time.
0 commit comments