diff --git a/.circleci/config.yml b/.circleci/config.yml index 2095ef8..5fcea1e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: /.*/ diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 2a32bd6..0000000 --- a/package-lock.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "requires": true, - "lockfileVersion": 1, - "dependencies": { - "assertion-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.0.2.tgz", - "integrity": "sha1-E8pRXYYgbaC6xm6DTdOX2HWBCUw=", - "dev": true - }, - "chai": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-3.5.0.tgz", - "integrity": "sha1-TQJjewZ/6Vi9v906QOxW/vc3Mkc=", - "dev": true, - "requires": { - "assertion-error": "1.0.2", - "deep-eql": "0.1.3", - "type-detect": "1.0.0" - } - }, - "deep-eql": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-0.1.3.tgz", - "integrity": "sha1-71WKyrjeJSBs1xOQbXTlaTDrafI=", - "dev": true, - "requires": { - "type-detect": "0.1.1" - }, - "dependencies": { - "type-detect": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-0.1.1.tgz", - "integrity": "sha1-C6XsKohWQORw6k6FBZcZANrFiCI=", - "dev": true - } - } - }, - "karma-chai": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/karma-chai/-/karma-chai-0.1.0.tgz", - "integrity": "sha1-vuWtQEAFF4Ea40u5RfdikJEIt5o=", - "dev": true - }, - "type-detect": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-1.0.0.tgz", - "integrity": "sha1-diIXzAbbJY7EiQihKY6LlRIejqI=", - "dev": true - } - } -}