Skip to content

Commit

Permalink
Ana/add new release script copying fe (#479)
Browse files Browse the repository at this point in the history
* add new release script copying fe

* add node executor to circleci

* add aliases for circleci

* missed one alias
  • Loading branch information
Bitcoinera authored Mar 20, 2020
1 parent fd10ec3 commit ce336f5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
version: 2.1

# Here we define all the paths and versions of images we want to play with
aliases:
# Define paths and never think about them again
- &WORKSPACE /tmp/voyager
# Pick docker versions here only, then use the aliases in the executors definition
- &docker-node circleci/node:10.15.3

# a reusable executor
executors:
node:
docker:
- image: *docker-node
working_directory: *WORKSPACE

jobs:
build:
docker:
Expand All @@ -18,3 +33,22 @@ jobs:
- run:
name: Test
command: yarn test

# Create release.
release:
executor: node
steps:
- checkout
- run: |
yarn add simsala
git config user.email "[email protected]"
git config user.name "Release Lunie Bot"
node node_modules/simsala/src/cli.js release-candidate --semver patch --pending-path ./changes --owner luniehq --repository lunie --token $GIT_BOT_TOKEN --message "Please manually test before merging this to master"
workflows:
releaseManually:
jobs:
- release:
filters:
branches:
only: release
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dev-docker": "docker build -t lunie-api-dev . && docker run --init -it -p 4000:4000 lunie-api-dev",
"lint": "eslint index.js config.js lib tests",
"lint-fix": "yarn lint --fix",
"release": "git fetch --all && git checkout origin/develop -B develop && git pull && git merge origin/master && git push -u origin develop && git push origin develop:release",
"release": "git fetch --all && git checkout origin/develop -B develop && git pull && git checkout origin/release -B release && git pull && git merge origin/develop && git push",
"start": "node index.js ",
"test": "jest"
},
Expand Down

0 comments on commit ce336f5

Please sign in to comment.