-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: semantic-release and circleci #60
Open
ForbesLindesay
wants to merge
14
commits into
master
Choose a base branch
from
ci/semantic-release
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0e26ce4
chore: semantic-release and circleci
ForbesLindesay 9fd5781
fix: ci config
ForbesLindesay 4d5a55e
fix: ci config
ForbesLindesay f8057d8
fix: ci config
ForbesLindesay c8900d3
fix: ci config
ForbesLindesay 0d3161c
fix: checkout code in CI
ForbesLindesay dda1fea
chore: name unit tests jobs
ForbesLindesay f6d0d2d
chore: rename CI jobs
ForbesLindesay b21a3b7
chore: add publish dry run
ForbesLindesay 7098bf3
chore: fix versions build step name
ForbesLindesay 4e0ea16
chore: use dry-run & manual approval before publishing
ForbesLindesay 47c3836
swap to npm
ForbesLindesay 96a88fc
chore: add node v13
ForbesLindesay cd0a199
Merge branch 'master' of github.com:jstransformers/boilerplate into c…
RobLoach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,143 @@ | ||
version: 2.1 | ||
|
||
refs: | ||
- &only_master | ||
filters: | ||
branches: | ||
only: master | ||
|
||
- ¬_master | ||
filters: | ||
branches: | ||
ignore: master | ||
|
||
workflows: | ||
test: | ||
jobs: | ||
- unit-tests: | ||
<<: *not_master | ||
name: node-8 | ||
version: "8" | ||
- unit-tests: | ||
<<: *not_master | ||
name: node-10 | ||
version: "10" | ||
- unit-tests: | ||
<<: *not_master | ||
name: node-12 | ||
version: "12" | ||
- unit-tests: | ||
<<: *not_master | ||
name: node-13 | ||
version: "13" | ||
|
||
release: | ||
jobs: | ||
- unit-tests: | ||
<<: *only_master | ||
name: node-8 | ||
version: "8" | ||
- unit-tests: | ||
<<: *only_master | ||
name: node-10 | ||
version: "10" | ||
- unit-tests: | ||
<<: *only_master | ||
name: node-12 | ||
version: "12" | ||
- unit-tests: | ||
<<: *not_master | ||
name: node-13 | ||
version: "13" | ||
|
||
- publish-dry-run: | ||
<<: *only_master | ||
context: master | ||
|
||
- publish-approval: | ||
type: approval | ||
context: master | ||
requires: | ||
- publish-dry-run | ||
|
||
- publish: | ||
<<: *only_master | ||
context: master | ||
requires: | ||
- node-8 | ||
- node-10 | ||
- node-12 | ||
- publish-approval | ||
|
||
monthly: | ||
triggers: | ||
- schedule: | ||
cron: '0 0 1 * *' | ||
<<: *only_master | ||
jobs: | ||
- unit-tests: | ||
name: node-8 | ||
version: "8" | ||
- unit-tests: | ||
name: node-10 | ||
version: "10" | ||
- unit-tests: | ||
name: node-12 | ||
version: "12" | ||
jobs: | ||
unit-tests: | ||
parameters: | ||
version: | ||
type: string | ||
docker: | ||
- image: circleci/node:<< parameters.version >> | ||
steps: | ||
- setup | ||
- test | ||
|
||
publish-dry-run: | ||
docker: | ||
- image: circleci/node:12 | ||
steps: | ||
- setup | ||
- publish-dry-run | ||
|
||
publish: | ||
docker: | ||
- image: circleci/node:12 | ||
steps: | ||
- setup | ||
- publish | ||
|
||
commands: | ||
setup: | ||
description: "Checkout and install dependencies" | ||
steps: | ||
- checkout | ||
- run: | ||
name: Versions | ||
command: node -v && npm -v | ||
- run: | ||
name: Install Dependencies | ||
command: npm install | ||
|
||
test: | ||
steps: | ||
- run: | ||
name: Test | ||
command: npm test | ||
|
||
publish-dry-run: | ||
steps: | ||
- run: | ||
name: Release (Dry Run) | ||
command: npx semantic-release --dry-run | ||
|
||
publish: | ||
steps: | ||
- run: | ||
name: NPM Auth | ||
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc | ||
- run: | ||
name: Release | ||
command: npx semantic-release |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call... We'll have to remember to remove private from the packages that use this. 👍