diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..6834d22 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +name: Publish +run-name: ${{ github.actor }} published a new release +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out latest code + uses: actions/checkout@v3 + - name: Set up node + uses: actions/setup-node@v3 + with: + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' + scope: '@launchpadlab' + - name: Publish package on NPM + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/index.json b/index.json index 85dd4ea..bf5c818 100644 --- a/index.json +++ b/index.json @@ -1,17 +1,6 @@ { - "printWidth": 80, - "tabWidth": 2, - "useTabs": false, + "useTabs": true, "semi": false, "singleQuote": true, - "jsxSingleQuote": false, - "trailingComma": "es5", - "bracketSpacing": true, - "jsxBracketSameLine": false, - "arrowParens": "always", - "requirePragma": false, - "insertPragma": false, - "proseWrap": "preserve", - "htmlWhitespaceSensitivity": "css", "endOfLine": "auto" } diff --git a/package.json b/package.json index 4ba27c4..f8d6423 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,11 @@ { "name": "@launchpadlab/prettier-config", - "version": "1.0.0", + "version": "2.0.0", "main": "index.json", "repository": "https://github.com/launchpadlab/prettier-config", "author": "dpikt", - "license": "MIT" + "license": "MIT", + "peerDependencies": { + "prettier": "^1.0 || ^2.0 || ^3.0" + } }