Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
version: 2.1
jobs:
build-node15:
docker:
- image: circleci/node:15-browsers
working_directory: ~/repo
steps:
- checkout
- run: yarn
- run: yarn run ci

build-node14:
docker:
- image: circleci/node:14-browsers
working_directory: ~/repo
steps:
- checkout
- run: yarn
- run: yarn run ci

build-node12:
docker:
- image: circleci/node:12-browsers
working_directory: ~/repo
steps:
- checkout
- run: yarn
- run: yarn run ci

deploy-npm:
docker:
- image: circleci/node:14-browsers
working_directory: ~/repo
steps:
- checkout
- run: yarn --pure-lockfile
- run: yarn run ci
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
# To help debug when lerna detects changes to the working tree and fails the publish
- run: git status
- run: yarn run release:publish

workflows:
version: 2
voter:
jobs:
- build-node12
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're sure Node 10 isn't needed? I'm still personally on that version for work stuff. 🤷‍♂️

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can always add it later, but node10 will reach EOL in ~2 months, so maybe it is not worth it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds fair.

- build-node14
- build-node15
release:
jobs:
- deploy-npm:
filters:
tags:
only: /^v[0-9]+(\.[0-9]+)*/
branches:
ignore: /.*/
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@ typings/
# build artifacts
lib
tsconfig.tsbuildinfo
.rollup.cache
.rollup.cache

# jetbrains
.idea
11 changes: 10 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,13 @@ Our goal is to build a unique and welcoming community around this project. Code

### On the details of contributing

As far as code style, repo management, tools, etc, ehh we can figure that out! Don't sweat it. Ask questions, and when you find answers, do your best to fill in any gaps in code documentation and in the Docusaurus docs, so that the next person doesn't encounter the same gaps.
As far as code style, repo management, tools, etc, ehh we can figure that out! Don't sweat it. Ask questions, and when you find answers, do your best to fill in any gaps in code documentation and in the Docusaurus docs, so that the next person doesn't encounter the same gaps.

### Release Process
Performing a release requires push permissions to the repository.

- Ensure you are on the master branch and synced with origin.
- yarn run release:version
- Follow the lerna CLI instructions and choose the new version number.
- Track the newly pushed tag (/^v[0-9]+(\.[0-9]+)*/) build in the build system until successful completion.
- Inspect the new artifacts published on npmjs.com, e.g:
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
"typescript": "^4.0.3"
},
"scripts": {
"release:version": "lerna version",
"release:publish": "lerna publish from-git --yes",
"ci": "lerna run ci && yarn run lint",
"lint:fix": "eslint --fix '**/*.{ts,json}'",
"lint": "eslint '**/*.{ts,json}'",
Expand Down