Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Commit

Permalink
Update circleci config to use occ for publishing (#131)
Browse files Browse the repository at this point in the history
* Update circleci config to use occ for publishing

* Update circleci config to use occ for publishing

* Update circleci config to use occ for publishing

* Delete package-lock.json

lol
  • Loading branch information
JakeChampion authored and chee committed Feb 12, 2019
1 parent e7ba3ca commit 3e17541
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 75 deletions.
48 changes: 25 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,35 @@ version: 2
jobs:
test:
docker:
- image: circleci/node:8-browsers
- image: circleci/node:10-browsers
steps:
- checkout
- run:
name: Ensure package.json exists for caching
command: if [[ ! -f package.json ]]; then echo "{}" > package.json; fi
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}-{{ checksum "bower.json" }}
- run:
name: Install dependencies
command: npx origami-build-tools@^7 install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}-{{ checksum "bower.json" }}
paths:
- node_modules
- bower_components
- run:
name: Build accessibility testing demo
command: npx origami-build-tools@^7 demo --demo-filter pa11y --suppress-errors
- run:
name: Run linters
command: npx origami-build-tools@^7 verify
- run:
name: Run tests
command: npx origami-build-tools@^7 test
- run: npm config set prefix "$HOME/.local"
- run: npm i -g origami-build-tools@^7
- run: $HOME/.local/bin/obt install
- run: $HOME/.local/bin/obt demo --demo-filter pa11y --suppress-errors
- run: $HOME/.local/bin/obt verify
- run: $HOME/.local/bin/obt test
- run: git clean -fxd
- run: npx occ 0.0.0
- run: $HOME/.local/bin/obt install --ignore-bower
- run: $HOME/.local/bin/obt test --ignore-bower
publish_to_npm:
docker:
- image: circleci/node:10
steps:
- checkout
- run: npx occ ${CIRCLE_TAG##v}
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > $HOME/.npmrc
- run: npm publish --access public
workflows:
version: 2
test:
jobs:
- test
- publish_to_npm:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
52 changes: 0 additions & 52 deletions package-lock.json

This file was deleted.

0 comments on commit 3e17541

Please sign in to comment.