This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add CI using CircleCI [IS-2] (#41)
- Loading branch information
Kunal Nagar
authored
Mar 13, 2021
1 parent
e23ca23
commit 7ab76e3
Showing
2 changed files
with
36 additions
and
0 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,35 @@ | ||
version: 2.1 | ||
|
||
commands: | ||
setup: | ||
steps: | ||
- checkout | ||
- run: | ||
name: 'Login to npm' | ||
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc | ||
- run: yarn install --frozen-lockfile | ||
|
||
executors: | ||
node: | ||
docker: | ||
- image: circleci/node:14.16.0 | ||
|
||
jobs: | ||
lint-build: | ||
executor: node | ||
steps: | ||
- setup | ||
- run: | ||
name: Lint source code | ||
command: yarn lint | ||
- run: | ||
name: Build distribution files | ||
command: yarn build | ||
- persist_to_workspace: | ||
root: . | ||
paths: . | ||
|
||
workflows: | ||
test-and-publish: | ||
jobs: | ||
- lint-build |
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