File tree Expand file tree Collapse file tree 4 files changed +20
-10
lines changed Expand file tree Collapse file tree 4 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,13 @@ inputs:
5
5
node-version :
6
6
description : The version of node.js
7
7
required : false
8
- default : ' 20 '
8
+ default : ' 24 '
9
9
10
10
runs :
11
11
using : composite
12
12
steps :
13
13
- name : Install pnpm
14
- uses : pnpm/action-setup@v2
15
- with :
16
- run_install : false
14
+ uses : pnpm/action-setup@v4
17
15
18
16
- name : Setup node
19
17
uses : actions/setup-node@v4
@@ -22,10 +20,20 @@ runs:
22
20
cache : pnpm
23
21
registry-url : ' https://registry.npmjs.org'
24
22
25
- - name : Setup ni
26
- run : npm i -g @antfu/ni
23
+ - name : Check npm version
24
+ shell : bash
25
+ run : npm --version
26
+
27
+ - name : Update npm
28
+ shell : bash
29
+ run : npm install -g npm@latest
30
+
31
+ # NPM v11.5.0 added support for OIDC publish
32
+ # https://docs.npmjs.com/cli/v11/using-npm/changelog#1150-2025-07-24
33
+ - name : Check npm version
27
34
shell : bash
35
+ run : npm --version
28
36
29
37
- name : Install
30
- run : ni
38
+ run : pnpm install
31
39
shell : bash
Original file line number Diff line number Diff line change 20
20
runs-on : ubuntu-latest
21
21
needs : [version]
22
22
if : ${{ needs.version.outputs.release_created }}
23
+ permissions :
24
+ id-token : write
23
25
steps :
24
26
- uses : actions/checkout@v4
25
27
30
32
31
33
- name : Publish to NPM
32
34
run : pnpm publish
33
- env :
34
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
# @ocavue/eslint-config
2
2
3
+ [ ![ npm] ( https://img.shields.io/npm/v/@ocavue/eslint-config )] ( https://www.npmjs.com/package/@ocavue/eslint-config )
4
+
3
5
A set of ESLint shareable configs for TypeScript projects.
4
6
5
7
- Out of the box support for TypeScript, React, and Markdown
Original file line number Diff line number Diff line change 1
1
import type { Linter } from 'eslint'
2
2
import reactPlugin from 'eslint-plugin-react'
3
- import reactCompiler from " eslint-plugin-react-compiler"
3
+ import reactCompiler from ' eslint-plugin-react-compiler'
4
4
import reactHooksPlugin from 'eslint-plugin-react-hooks'
5
5
6
6
import { resolveReactOptions , type ReactOptions } from './options.js'
You can’t perform that action at this time.
0 commit comments