File tree 6 files changed +98
-8
lines changed
6 files changed +98
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " eslint-plugin-prettier " : patch
3
+ ---
4
+
5
+ ci: enable ` NPM_CONFIG_PROVENANCE ` env
Original file line number Diff line number Diff line change
1
+ name : autofix.ci # For security reasons, the workflow in which the autofix.ci action is used must be named "autofix.ci".
2
+
3
+ on :
4
+ pull_request :
5
+ types :
6
+ - opened
7
+ - reopened
8
+ - synchronize
9
+
10
+ concurrency :
11
+ group : ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress : true
13
+
14
+ jobs :
15
+ autofix :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - name : Checkout Repo
19
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20
+
21
+ - name : Setup pnpm
22
+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
23
+
24
+ - name : Setup Node.js LTS
25
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
26
+ with :
27
+ node-version : lts/*
28
+ cache : pnpm
29
+
30
+ - name : Install Dependencies
31
+ run : pnpm install --prefer-frozen-lockfile
32
+
33
+ - name : Format Codes
34
+ run : pnpm format
35
+
36
+ - name : Apply autofix.ci
37
+ uses : autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1.3.1
38
+ with :
39
+ fail-fast : false
Original file line number Diff line number Diff line change @@ -31,11 +31,13 @@ jobs:
31
31
eslint : 8
32
32
33
33
steps :
34
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
34
+ - name : Checkout Repo
35
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
35
36
36
- - uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
37
+ - name : Setup pnpm
38
+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
37
39
38
- - name : Use Node.js ${{ matrix.node }}
40
+ - name : Setup Node.js ${{ matrix.node }}
39
41
uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
40
42
with :
41
43
node-version : ${{ matrix.node }}
Original file line number Diff line number Diff line change
1
+ name : Publish Any Commit
2
+ on :
3
+ - push
4
+ - pull_request
5
+
6
+ concurrency :
7
+ group : ${{ github.workflow }}-${{ github.ref }}
8
+ cancel-in-progress : true
9
+
10
+ jobs :
11
+ publish :
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Checkout Repo
16
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17
+
18
+ - name : Setup pnpm
19
+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
20
+
21
+ - name : Setup Node.js LTS
22
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
23
+ with :
24
+ node-version : lts/*
25
+ cache : pnpm
26
+
27
+ - name : Install Dependencies
28
+ run : pnpm install --prefer-frozen-lockfile
29
+
30
+ - name : Publish
31
+ run : pnpm dlx pkg-pr-new publish --compact
Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
8
+ concurrency :
9
+ group : ${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress : true
11
+
12
+ permissions :
13
+ contents : write
14
+ id-token : write
15
+ pull-requests : write
16
+
8
17
jobs :
9
18
release :
10
19
name : Release
11
20
runs-on : ubuntu-latest
12
21
steps :
13
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
22
+ - name : Checkout Repo
23
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14
24
15
- - uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
25
+ - name : Setup pnpm
26
+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
16
27
17
- - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
28
+ - name : Setup Node.js LTS
29
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
18
30
with :
19
31
node-version : lts/*
20
32
cache : pnpm
31
43
title : ' chore: release eslint-plugin-prettier'
32
44
env :
33
45
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46
+ NPM_CONFIG_PROVENANCE : true
34
47
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 5
5
"repository" : " https://github.com/prettier/eslint-plugin-prettier.git" ,
6
6
"homepage" : " https://github.com/prettier/eslint-plugin-prettier#readme" ,
7
7
"author" : " Teddy Katz" ,
8
- "contributors " : [
9
- " JounQin (https://github.com/JounQin) <[email protected] > "
8
+ "maintainers " : [
9
+ " JounQin <[email protected] > (https://github.com/JounQin)"
10
10
],
11
11
"funding" : " https://opencollective.com/eslint-plugin-prettier" ,
12
12
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments