Skip to content

add .travis.yml and @fs/npm-publisher #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down