Skip to content

Commit

Permalink
feat: circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
FauxFaux committed Jun 8, 2022
1 parent 84011b2 commit 8baba93
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 29 deletions.
53 changes: 53 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: 2.1

jobs:
test:
docker:
- image: cimg/node:14.19
working_directory: ~/work
steps:
- checkout
- run:
name: Set npmjs user
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
- run:
name: Install
command: npm install
- run:
name: Lint
command: npm run lint
- run:
name: Test
command: npm test
release:
docker:
- image: cimg/node:14.19
working_directory: ~/work
steps:
- checkout
- run:
name: Set npmjs user
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
- run:
name: Install
command: npm install
- run:
name: Release
command: npx semantic-release@17

workflows:
version: 2
test:
jobs:
- test:
name: Test
context: nodejs-install
- release:
name: Release
requires:
- Test
context: nodejs-lib-release
filters:
branches:
only:
- master
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

0 comments on commit 8baba93

Please sign in to comment.