Skip to content

Commit 508d6d6

Browse files
committed
Add CircleCI config
1 parent c222f99 commit 508d6d6

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

.circleci/config.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: 2.1
2+
3+
orbs:
4+
orb-tools: circleci/orb-tools@2
5+
6+
workflows:
7+
btd:
8+
jobs:
9+
- orb-tools/pack:
10+
source-dir: src/
11+
destination-orb-path: packed-orb.yml
12+
workspace-path: packed-orb.yml
13+
artifact-path: packed-orb.yml
14+
15+
- orb-tools/publish:
16+
orb-path: packed-orb.yml
17+
orb-ref: "react-native-community/react-native@dev:${CIRCLE_BRANCH}"
18+
publish-token-variable: "$CIRCLECI_API_TOKEN"
19+
attach-workspace: true
20+
checkout: false
21+
requires: [orb-tools/pack]
22+
23+
- orb-tools/increment:
24+
orb-path: packed-orb.yml
25+
orb-ref: "react-native-community/react-native"
26+
segment: "patch"
27+
publish-token-variable: "$CIRCLECI_API_TOKEN"
28+
attach-workspace: true
29+
checkout: false
30+
requires: [orb-tools/pack]
31+
filters:
32+
branches:
33+
only: master

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/config.yml
1+
/packed-orb.yml

scripts/pack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22
set -e
3-
circleci config pack src > config.yml
3+
circleci config pack src > packed-orb.yml

0 commit comments

Comments
 (0)