Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

Commit

Permalink
Add CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-oakes committed Mar 25, 2019
1 parent c222f99 commit 508d6d6
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: 2.1

orbs:
orb-tools: circleci/orb-tools@2

workflows:
btd:
jobs:
- orb-tools/pack:
source-dir: src/
destination-orb-path: packed-orb.yml
workspace-path: packed-orb.yml
artifact-path: packed-orb.yml

- orb-tools/publish:
orb-path: packed-orb.yml
orb-ref: "react-native-community/react-native@dev:${CIRCLE_BRANCH}"
publish-token-variable: "$CIRCLECI_API_TOKEN"
attach-workspace: true
checkout: false
requires: [orb-tools/pack]

- orb-tools/increment:
orb-path: packed-orb.yml
orb-ref: "react-native-community/react-native"
segment: "patch"
publish-token-variable: "$CIRCLECI_API_TOKEN"
attach-workspace: true
checkout: false
requires: [orb-tools/pack]
filters:
branches:
only: master
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/config.yml
/packed-orb.yml
2 changes: 1 addition & 1 deletion scripts/pack.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
set -e
circleci config pack src > config.yml
circleci config pack src > packed-orb.yml

0 comments on commit 508d6d6

Please sign in to comment.