Skip to content

Commit bd7b4d9

Browse files
joeycozzaskye2k2
andauthored
Add Travis CI-based publishing (#14)
Add .travis.yml configuration and @fs/npm-publisher dependency and build step. Disable tests, to get an already-released version out to artifactory. TODO: Review the rule changes, and cut a new release. --------- Co-authored-by: Clif Bergmann <[email protected]>
1 parent a7611d3 commit bd7b4d9

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
dist: focal
2+
version: ~> 1.0
3+
language: node_js
4+
node_js:
5+
- 16
6+
branches:
7+
only:
8+
- master
9+
before_install:
10+
- echo "//familysearch.jfrog.io/artifactory/api/npm/fs-npm-prod-virtual/:_authToken=${NPM_PUBLISH_TOKEN}" >> ~/.npmrc
11+
- echo "@fs:registry=https://familysearch.jfrog.io/artifactory/api/npm/fs-npm-prod-virtual/" >> ~/.npmrc
12+
script:
13+
- npm list --depth=0
14+
# 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.
15+
# - npm test
16+
deploy:
17+
- provider: script
18+
edge: true
19+
cleanup: false
20+
script: npm run publish
21+
on:
22+
branch: master

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "eslint-config-tree",
2+
"name": "@fs/eslint-config-tree",
33
"version": "6.0.0-alpha.2",
44
"description": "Shared Tree configuration that contains overrides and enhancements on top of the base frontier configuration.",
55
"main": "index.js",
@@ -33,6 +33,7 @@
3333
"eslint-plugin-test-selectors": "^2.0.4"
3434
},
3535
"devDependencies": {
36+
"@fs/npm-publisher": "^1.5.1",
3637
"ava": "^2.4.0",
3738
"file-manager-js": "^3.1.6",
3839
"husky": "^3.1.0"
@@ -50,6 +51,7 @@
5051
"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",
5152
"preinstall": "git config --global url.https://github.com/.insteadOf git://github.com/",
5253
"postinstall": "npm rebuild husky",
54+
"publish": "npmPublish",
5355
"test": "npm run lint:snapshot; ava",
5456
"test:format": "node demo/test/snapshots/format-config.js",
5557
"test:update": "npm run lint:snapshot; ava --update-snapshots"

0 commit comments

Comments
 (0)