@paratco/eslint-config 1.0.4 → 1.0.5

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.
@@ -10,6 +10,7 @@ jobs:
10
10
  - ubuntu-latest
11
11
 
12
12
  permissions:
13
+ packages: write
13
14
  contents: read
14
15
  id-token: write
15
16
 
@@ -35,9 +36,9 @@ jobs:
35
36
  - name: Setup Node
36
37
  uses: actions/setup-node@v4
37
38
  with:
38
- node-version: 20
39
+ node-version: 22
39
40
  check-latest: 'true'
40
- registry-url: "https://registry.npmjs.org"
41
+ registry-url: https://registry.npmjs.org/
41
42
 
42
43
  - name: Enable Yarn
43
44
  run: corepack enable
@@ -49,3 +50,8 @@ jobs:
49
50
  run: npm publish --provenance --access public
50
51
  env:
51
52
  NODE_AUTH_TOKEN: ${{ secrets.NPM_KEY }}
53
+
54
+ - name: Publish package on GitHub
55
+ run: npm publish --provenance --access public --registry https://npm.pkg.github.com/
56
+ env:
57
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,28 @@
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paratco/eslint-config",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "author": "Paratco",
@@ -18,6 +18,9 @@
18
18
  "node.js",
19
19
  "lint"
20
20
  ],
21
+ "publishConfig": {
22
+ "registry": "https://registry.npmjs.org/"
23
+ },
21
24
  "scripts": {
22
25
  "lint": "eslint . --report-unused-disable-directives-severity error --max-warnings 0",
23
26
  "format": "prettier --write src/"