This repository was archived by the owner on May 3, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +267
-248
lines changed
Expand file tree Collapse file tree 10 files changed +267
-248
lines changed Original file line number Diff line number Diff line change 11name : Format Code
22
33on :
4- pull_request :
5- branches :
6- - dev
4+ pull_request :
5+ branches :
6+ - dev
77
88jobs :
9- prettier-format :
10- runs-on : ubuntu-latest
9+ prettier-format :
10+ runs-on : ubuntu-latest
1111
12- steps :
13- - name : Checkout repository
14- uses : actions/checkout@v2
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v2
1515
16- - name : Set up Node.js
17- uses : actions/setup-node@v2
18- with :
19- node-version : ' 20'
16+ - name : Set up Node.js
17+ uses : actions/setup-node@v2
18+ with :
19+ node-version : ' 20'
2020
21- - name : Install dependencies
22- run : npm install
21+ - name : Install dependencies
22+ run : npm install
2323
24- - name : Run Prettier format
25- run : npm run format
24+ - name : Run Prettier format
25+ run : npm run format
Original file line number Diff line number Diff line change 11name : Pre-Publish Checks
22
33on :
4- pull_request :
5- branches :
6- - main
4+ pull_request :
5+ branches :
6+ - main
77
88jobs :
9- prettier-check :
10- runs-on : ubuntu-latest
11- steps :
12- - name : Checkout repository
13- uses : actions/checkout@v2
14-
15- - name : Set up Node.js
16- uses : actions/setup-node@v2
17- with :
18- node-version : ' 20'
19-
20- - name : Install dependencies
21- run : npm install
22-
23- - name : Run Prettier check
24- run : npm run format-check
25-
26- build :
27- runs-on : ubuntu-latest
28- needs : prettier-check
29- steps :
30- - name : Checkout repository
31- uses : actions/checkout@v2
32-
33- - name : Set up Node.js
34- uses : actions/setup-node@v2
35- with :
36- node-version : ' 20'
37-
38- - name : Install dependencies
39- run : npm install
40-
41- - name : Run build
42- run : npm run build
9+ prettier-check :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout repository
13+ uses : actions/checkout@v2
14+
15+ - name : Set up Node.js
16+ uses : actions/setup-node@v2
17+ with :
18+ node-version : ' 20'
19+
20+ - name : Install dependencies
21+ run : npm install
22+
23+ - name : Run Prettier check
24+ run : npm run format-check
25+
26+ build :
27+ runs-on : ubuntu-latest
28+ needs : prettier-check
29+ steps :
30+ - name : Checkout repository
31+ uses : actions/checkout@v2
32+
33+ - name : Set up Node.js
34+ uses : actions/setup-node@v2
35+ with :
36+ node-version : ' 20'
37+
38+ - name : Install dependencies
39+ run : npm install
40+
41+ - name : Run build
42+ run : npm run build
Original file line number Diff line number Diff line change 11name : Publish to npm
22
33on :
4- push :
5- branches :
6- - main
4+ push :
5+ branches :
6+ - main
77
88jobs :
9- publish :
10- runs-on : ubuntu-latest
9+ publish :
10+ runs-on : ubuntu-latest
1111
12- steps :
13- # Step 1: Checkout the code from the repository
14- - name : Checkout code
15- uses : actions/checkout@v3
12+ steps :
13+ # Step 1: Checkout the code from the repository
14+ - name : Checkout code
15+ uses : actions/checkout@v3
1616
17- # Step 2: Set up Node.js environment
18- - name : Set up Node.js
19- uses : actions/setup-node@v3
20- with :
21- node-version : ' 20'
22- registry-url : ' https://registry.npmjs.org/'
17+ # Step 2: Set up Node.js environment
18+ - name : Set up Node.js
19+ uses : actions/setup-node@v3
20+ with :
21+ node-version : ' 20'
22+ registry-url : ' https://registry.npmjs.org/'
2323
24- # Step 3: Install dependencies
25- - name : Install dependencies
26- run : npm install
24+ # Step 3: Install dependencies
25+ - name : Install dependencies
26+ run : npm install
2727
28- # Step 4: Build the project
29- - name : Build the project
30- run : npm run build-ci
28+ # Step 4: Build the project
29+ - name : Build the project
30+ run : npm run build-ci
3131
32- # Step 5: Publish to npm
33- - name : Publish to npm
34- run : npm publish
35- env :
36- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
32+ # Step 5: Publish to npm
33+ - name : Publish to npm
34+ run : npm publish
35+ env :
36+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ ai-diff-commit -a -p
5555
5656## Bug Reports and Feature Requests
5757
58- If you encounter any issues while using the script or have ideas for new features, please [ open an issue on GitHub] ( https://github.com/IanSkelskey/ai-diff-commit/issues/new ) .
58+ If you encounter any issues while using the script or have ideas for new features, please [ open an issue on GitHub] ( https://github.com/IanSkelskey/ai-diff-commit/issues/new ) .
5959
6060## License
6161
You can’t perform that action at this time.
0 commit comments