Skip to content

Commit

Permalink
[chore] auto-deploy with CI
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-wyatt committed Jul 9, 2018
1 parent 4eee18b commit 8e98ccc
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 6 deletions.
48 changes: 44 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#

version: 2

defaults: &defaults
working_directory: ~/fabrix
docker:
- image: circleci/node:10.0.0

jobs:
build:
working_directory: ~/fabrix
docker:
- image: circleci/node:10.0.0
test:
<<: *defaults
steps:
- checkout
- run:
Expand Down Expand Up @@ -35,3 +44,34 @@ jobs:
prefix: coverage
- store_test_results:
path: test-results.xml
- persist_to_workspace:
root: ~/fabrix
paths: .
deploy:
<<: *defaults
steps:
- attach_workspace:
at: ~/fabrix
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/fabrix/.npmrc
- run:
name: Publish package
command: npm publish

workflows:
version: 2
test-deploy:
jobs:
- test:
filters:
tags:
only: /^v.*/
- deploy:
requires:
- test
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ In case of doubt, open an issue in the [issue tracker](https://github.com/fabrix

## Publishing Releases

All releases are tagged and published by the [Fabrix.js Maintainers](https://github.com/orgs/fabrix-app/teams) automatically via [Cicle-CI](https://circleci.com/gh/fabrix-app/fabrix). For a patch release, the deployment process is as follows:
All releases are tagged and published by the [Fabrix Maintainers](https://github.com/orgs/fabrix-app/teams) automatically via [Cicle-CI](https://circleci.com/gh/fabrix-app/fabrix). For a patch release, the deployment process is as follows:

1. Tag a release
```sh
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License (MIT)

Copyright (c) 2018 CST <[email protected]>
2018 Scott Wyatt <[email protected]>
2018 Scott Wyatt <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit 8e98ccc

Please sign in to comment.