diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..d12ee04 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,14 @@ +on: push + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 10 + - uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + access: public diff --git a/README.md b/README.md index 4ed7f54..bcfa75d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# `@bokub/prettier-config` +# @bokub / prettier-config > My personal [Prettier](https://prettier.io) config. @@ -7,6 +7,10 @@ **Install**: ```bash +# Just the config +npm i -D @bokub/prettier-config + +# Whole package npm i -D prettier pretty-quick husky @bokub/prettier-config ``` diff --git a/index.json b/index.json index 26b8b1a..fe640ad 100644 --- a/index.json +++ b/index.json @@ -1,6 +1,6 @@ { "singleQuote": true, - "tabWidth": 4, + "tabWidth": 2, "printWidth": 120, "vueIndentScriptAndStyle": true } diff --git a/package.json b/package.json index cdcac04..931a25d 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,19 @@ { "name": "@bokub/prettier-config", - "version": "1.1.0", + "version": "2.0.0", "description": "bokub's favorite prettier config", "author": "bokub", "license": "MIT", - "scripts": { - "pub": "npm publish --access=public" - }, + "homepage": "https://github.com/bokub/prettier-config", "main": "index.json", "files": [ "package.json", "index.json", "README.md" ], - "prettier": { - "singleQuote": true, - "tabWidth": 4, - "printWidth": 120 - } + "keywords": [ + "prettier", + "config", + "prettier-config" + ] }