-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: semantic-release and circleci
This will move packages to CircleCI. It also adds a "publish" job that will publish the package according to Semantic Release.
- Loading branch information
1 parent
cc57e8b
commit a468fdb
Showing
6 changed files
with
141 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
version: 2.1 | ||
|
||
workflows: | ||
test: | ||
jobs: | ||
- unit-tests: | ||
<<: *not_master | ||
version: 8 | ||
- unit-tests: | ||
<<: *not_master | ||
version: 10 | ||
- unit-tests: | ||
<<: *not_master | ||
version: 12 | ||
|
||
release: | ||
jobs: | ||
- unit-tests: | ||
<<: *only_master | ||
name: v8 | ||
version: 8 | ||
- unit-tests: | ||
<<: *only_master | ||
name: v10 | ||
version: 10 | ||
- unit-tests: | ||
<<: *only_master | ||
name: v12 | ||
version: 12 | ||
|
||
- publish: | ||
<<: *only_master | ||
context: master | ||
requires: | ||
- v8 | ||
- v10 | ||
- v12 | ||
|
||
monthly: | ||
triggers: | ||
- schedule: | ||
cron: '0 0 1 * *' | ||
<<: *only_master | ||
jobs: | ||
- unit-tests: | ||
version: 8 | ||
- unit-tests: | ||
version: 10 | ||
- unit-tests: | ||
version: 12 | ||
jobs: | ||
unit-tests: | ||
parameters: | ||
version: | ||
type: string | ||
docker: | ||
- image: circleci/node:<< parameters.version >> | ||
steps: | ||
- setup | ||
- test | ||
|
||
publish: | ||
docker: | ||
- image: circleci/node:12 | ||
steps: | ||
- setup | ||
- publish | ||
|
||
commands: | ||
setup: | ||
description: "Checkout and install dependencies" | ||
steps: | ||
- run: | ||
name: Versions | ||
command: node -v && npm -v && yarn -v | ||
- run: | ||
name: Install Dependencies | ||
command: yarn install --pure-lockfile | ||
|
||
test: | ||
steps: | ||
- run: | ||
name: Test | ||
command: yarn test | ||
|
||
publish: | ||
steps: | ||
- run: | ||
name: NPM Auth | ||
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc | ||
- run: | ||
name: Release | ||
command: npx semantic-release | ||
|
||
refs: | ||
- &only_master | ||
filters: | ||
branches: | ||
only: master | ||
|
||
- ¬_master | ||
filters: | ||
branches: | ||
ignore: master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Config for https://github.com/probot/semantic-pull-requests | ||
|
||
# Always validate the PR title, and ignore the commits | ||
titleOnly: true | ||
types: | ||
# To do a major relase, put "BREAKING CHANGE: ..." in the message | ||
# Minor Release | ||
- feat | ||
# Patch Release | ||
- fix | ||
- perf | ||
# No Release | ||
- docs | ||
- chore |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters