diff --git a/.circleci/config.yml b/.circleci/config.yml index 50a9e0d..6389efb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: @@ -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: /.*/ diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 08f4f81..e9d9c5e 100755 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -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 diff --git a/LICENSE b/LICENSE index 7888880..8db262f 100755 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ The MIT License (MIT) Copyright (c) 2018 CST - 2018 Scott Wyatt + 2018 Scott Wyatt Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal