@hearthsim/eslint-config-typescript-react 2.0.2 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,28 +2,26 @@ name: Publish to NPM
2
2
 
3
3
  on:
4
4
  push:
5
- tags:
6
- - 'v*.*.*'
5
+ branches:
6
+ - main
7
7
 
8
- jobs:
9
- build:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/checkout@v2
13
- - uses: actions/setup-node@v1
14
- with:
15
- node-version: 12
16
- - run: yarn install --frozen-lockfile
8
+ permissions:
9
+ contents: write
10
+ id-token: write
17
11
 
12
+ jobs:
18
13
  publish-npm:
19
- needs: build
20
14
  runs-on: ubuntu-latest
21
15
  steps:
22
- - uses: actions/checkout@v2
23
- - uses: actions/setup-node@v1
16
+ - uses: actions/checkout@v4
24
17
  with:
25
- node-version: 12
18
+ fetch-depth: 0
19
+ - uses: actions/setup-node@v4
20
+ with:
21
+ node-version: 22
26
22
  registry-url: https://registry.npmjs.org/
27
- - run: yarn publish --access public
23
+ - run: npm install -g npm@latest
24
+ - run: yarn install --frozen-lockfile
25
+ - run: npx --package semantic-release --package conventional-changelog-conventionalcommits semantic-release
28
26
  env:
29
- NODE_AUTH_TOKEN: ${{secrets.NPM_HEARTHSIM_TOKEN}}
27
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,20 @@
1
+ {
2
+ "branches": ["main"],
3
+ "plugins": [
4
+ [
5
+ "@semantic-release/commit-analyzer",
6
+ {
7
+ "preset": "conventionalcommits",
8
+ "releaseRules": [{ "type": "build", "release": "patch" }]
9
+ }
10
+ ],
11
+ [
12
+ "@semantic-release/release-notes-generator",
13
+ {
14
+ "preset": "conventionalcommits"
15
+ }
16
+ ],
17
+ "@semantic-release/npm",
18
+ "@semantic-release/github"
19
+ ]
20
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearthsim/eslint-config-typescript-react",
3
- "version": "2.0.2",
3
+ "version": "3.0.1",
4
4
  "description": "HearthSim's presets for ESLint, with Typescript and React support.",
5
5
  "repository": "git@github.com:HearthSim/eslint-config-typescript-react.git",
6
6
  "author": "Benedict Etzel <benedict@hearthsim.net>",
@@ -10,24 +10,24 @@
10
10
  "format": "prettier --write *.js"
11
11
  },
12
12
  "peerDependencies": {
13
- "@typescript-eslint/eslint-plugin": "^5.4.0",
14
- "eslint": "^6.8.0 || ^7.2.0 || ^8.0.0",
13
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
14
+ "eslint": "^8.57.0 || ^9.0.0",
15
15
  "eslint-plugin-import": "^2.25.3",
16
16
  "eslint-plugin-jest": "^25.2.4",
17
17
  "eslint-plugin-react": "^7.27.1",
18
18
  "eslint-plugin-react-hooks": "^4.3.0",
19
19
  "prettier": ">=2.0.0",
20
- "typescript": ">=2.8.0"
20
+ "typescript": ">=4.8.4"
21
21
  },
22
22
  "dependencies": {
23
- "@hearthsim/eslint-config-typescript": "^2.0.3",
24
- "@typescript-eslint/parser": "5.4.0",
23
+ "@hearthsim/eslint-config-typescript": "^3.0.0",
24
+ "@typescript-eslint/parser": "8.62.1",
25
25
  "eslint-config-prettier": "^8.3.0"
26
26
  },
27
27
  "devDependencies": {
28
- "eslint": "^8.0.0",
28
+ "eslint": "^8.57.0",
29
29
  "prettier": "^2.2.1",
30
- "typescript": "^4.0.0"
30
+ "typescript": "^5.0.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"