@paratco/eslint-config 1.0.6 → 1.0.8

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.
@@ -0,0 +1,52 @@
1
+ name: Publish Package To GitHub
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on:
10
+ - ubuntu-latest
11
+
12
+ permissions:
13
+ packages: write
14
+ contents: read
15
+ id-token: write
16
+
17
+ steps:
18
+ - name: Check out the repo
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Check build version
22
+ uses: actions/github-script@v7
23
+ with:
24
+ script: |
25
+ try {
26
+ const fs = require("fs")
27
+ const jsonString = fs.readFileSync("package.json")
28
+ const package = JSON.parse(jsonString)
29
+ if (package.version !== "${{ github.ref_name }}") {
30
+ core.setFailed(`package.json version (${package.version}) not match version of release (${{ github.ref_name }})`)
31
+ }
32
+ } catch(err) {
33
+ core.setFailed(err)
34
+ }
35
+
36
+ - name: Setup Node
37
+ uses: actions/setup-node@v4
38
+ with:
39
+ node-version: 22
40
+ check-latest: 'true'
41
+ registry-url: https://npm.pkg.github.com/
42
+
43
+ - name: Enable Yarn
44
+ run: corepack enable
45
+
46
+ - name: Install dependencies
47
+ run: yarn install
48
+
49
+ - name: Publish
50
+ run: npm publish --provenance --access public --registry https://npm.pkg.github.com/
51
+ env:
52
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,4 +1,4 @@
1
- name: Publish To NPM
1
+ name: Publish Package To NPM
2
2
 
3
3
  on:
4
4
  release:
@@ -46,7 +46,7 @@ jobs:
46
46
  - name: Install dependencies
47
47
  run: yarn install
48
48
 
49
- - name: Publish package on NPM
49
+ - name: Publish
50
50
  run: npm publish --provenance --access public
51
51
  env:
52
52
  NODE_AUTH_TOKEN: ${{ secrets.NPM_KEY }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paratco/eslint-config",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "author": "Paratco",
@@ -39,12 +39,12 @@
39
39
  "eslint": "^9.17.0",
40
40
  "eslint-config-prettier": "^9.1.0",
41
41
  "eslint-import-resolver-typescript": "^3.7.0",
42
- "eslint-plugin-import-x": "^4.5.1",
43
- "eslint-plugin-react": "^7.37.2",
44
- "eslint-plugin-react-hooks": "5.1.0-rc-ca587425-20241211",
42
+ "eslint-plugin-import-x": "^4.6.1",
43
+ "eslint-plugin-react": "^7.37.3",
44
+ "eslint-plugin-react-hooks": "5.1.0-rc-65e06cb7-20241218",
45
45
  "eslint-plugin-react-refresh": "^0.4.16",
46
- "globals": "^15.13.0",
47
- "typescript-eslint": "^8.18.1"
46
+ "globals": "^15.14.0",
47
+ "typescript-eslint": "^8.19.0"
48
48
  },
49
- "packageManager": "yarn@4.5.3"
49
+ "packageManager": "yarn@4.6.0"
50
50
  }
@@ -1,28 +0,0 @@
1
- name: Test publish
2
-
3
- on:
4
- workflow_dispatch:
5
-
6
- jobs:
7
- build:
8
- runs-on:
9
- - ubuntu-latest
10
-
11
- permissions:
12
- packages: write
13
- contents: read
14
- id-token: write
15
-
16
- steps:
17
- - name: Check out the repo
18
- uses: actions/checkout@v4
19
-
20
- - name: Setup Node
21
- uses: actions/setup-node@v4
22
- with:
23
- node-version: 22
24
- check-latest: 'true'
25
- registry-url: "https://npm.pkg.github.com/"
26
-
27
- - name: Enable Yarn
28
- run: ls -la