Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
birdofpreyru committed Aug 6, 2023
1 parent a1039c6 commit 8275cb0
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
defaults: &defaults
docker:
- image: cimg/node:lts

version: 2
jobs:
test:
<<: *defaults
steps:
- checkout
- restore_cache:
key: node-modules-{{ checksum "package-lock.json" }}-{{ checksum "example/package-lock.json" }}
- run: npm install
- run: npm run bootstrap
- save_cache:
key: node-modules-{{ checksum "package-lock.json" }}-{{ checksum "example/package-lock.json" }}
paths:
- node_modules
- example/node_modules
- run: npm test
- persist_to_workspace:
root: .
paths:
- node_modules

release:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: .
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: npm publish --access public

workflows:
version: 2
build:
jobs:
- test:
filters:
tags:
only: /.*/
- release:
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-(alpha|beta)\.[0-9]+)?/
requires:
- test

0 comments on commit 8275cb0

Please sign in to comment.