Skip to content

Commit d2bbf98

Browse files
committed
Add default config
1 parent 266acb2 commit d2bbf98

File tree

4 files changed

+43
-37
lines changed

4 files changed

+43
-37
lines changed

.editorconfig

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,22 @@ on:
88
jobs:
99
publish-npm:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
1114
steps:
12-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1316
- name: Get package version
1417
id: package-version
1518
uses: martinbeentjes/[email protected]
1619
- name: Setup node environment
17-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v3
1821
with:
19-
node-version: 18
20-
registry-url: https://registry.npmjs.org/
22+
node-version: '18.x'
23+
registry-url: https://registry.npmjs.org
2124
- run: npm ci
2225
- name: Publish to NPM
23-
run: npm publish
26+
run: npm publish --provenance --access public
2427
env:
2528
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2629
- name: Collect release notes

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ With PNPM:
1313
pnpm add @hypetech/prettier-config -D
1414
```
1515

16-
With NPM:
16+
With Yarn:
1717

1818
```bash
19-
npm install --dev @hypetech/prettier-config
19+
yarn add -D @hypetech/prettier-config
2020
```
2121

22-
With Yarn:
22+
With NPM:
2323

2424
```bash
25-
yarn add --dev @hypetech/prettier-config
25+
npm install --dev @hypetech/prettier-config
2626
```
2727

2828
To inform prettier of this configuration, you have to add the `prettier` property to your `package.json` file:

package-lock.json

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)