diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8d002a0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +dist: focal +version: ~> 1.0 +language: node_js +node_js: + - 16 +branches: + only: + - master +before_install: + - echo "//familysearch.jfrog.io/artifactory/api/npm/fs-npm-prod-virtual/:_authToken=${NPM_PUBLISH_TOKEN}" >> ~/.npmrc + - echo "@fs:registry=https://familysearch.jfrog.io/artifactory/api/npm/fs-npm-prod-virtual/" >> ~/.npmrc +script: + - npm list --depth=0 + # NOTE: Because we are loosely-pinned to our linting dependencies, there will sometimes be changes to subsets of rules that we did not initiate. This is so that we can manually review when things change, and be certain that we did not lose config we care about. + # - npm test +deploy: + - provider: script + edge: true + cleanup: false + script: npm run publish + on: + branch: master diff --git a/package.json b/package.json index cf4de21..9c57d29 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "eslint-config-tree", + "name": "@fs/eslint-config-tree", "version": "6.0.0-alpha.2", "description": "Shared Tree configuration that contains overrides and enhancements on top of the base frontier configuration.", "main": "index.js", @@ -33,6 +33,7 @@ "eslint-plugin-test-selectors": "^2.0.4" }, "devDependencies": { + "@fs/npm-publisher": "^1.5.1", "ava": "^2.4.0", "file-manager-js": "^3.1.6", "husky": "^3.1.0" @@ -50,6 +51,7 @@ "lint:snapshot": "eslint demo --no-color --output-file ./demo/test/snapshots/local-linting-output.txt; eslint --print-config file.js > ./demo/test/snapshots/local-linting-final-config.json; npm run test:format", "preinstall": "git config --global url.https://github.com/.insteadOf git://github.com/", "postinstall": "npm rebuild husky", + "publish": "npmPublish", "test": "npm run lint:snapshot; ava", "test:format": "node demo/test/snapshots/format-config.js", "test:update": "npm run lint:snapshot; ava --update-snapshots"