Skip to content

Commit 35dd66b

Browse files
committed
lint and update semantic release workflows
1 parent 7f7cd87 commit 35dd66b

File tree

5 files changed

+26
-41
lines changed

5 files changed

+26
-41
lines changed

.github/workflows/checkPullRequest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3.5.2
14+
uses: actions/checkout@v3
1515

1616
- name: Semantic Release
17-
uses: cycjimmy/semantic-release-action@v3
17+
uses: cycjimmy/semantic-release-action@v4
1818
with:
1919
branch: main
2020
extra_plugins: |

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
# required antecedent
15-
- uses: actions/checkout@v3.5.2
15+
- uses: actions/checkout@v4
1616

1717
- name: Semantic Release
18-
uses: cycjimmy/semantic-release-action@v3
18+
uses: cycjimmy/semantic-release-action@v4
1919
id: semantic
2020
with:
2121
branches: |
@@ -38,6 +38,7 @@ jobs:
3838
@semantic-release/changelog
3939
env:
4040
GITHUB_TOKEN: ${{ secrets.PAT }}
41+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
4142

4243
- name: Publish To GitHub Package Registry
4344
if: steps.semantic.outputs.new_release_published == 'true'
@@ -49,3 +50,4 @@ jobs:
4950
run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}"
5051
env:
5152
GITHUB_TOKEN: ${{ secrets.PAT }}
53+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

.github/workflows/test.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/testRelease.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424

2525
- name: Semantic Release
26-
uses: cycjimmy/semantic-release-action@v3
26+
uses: cycjimmy/semantic-release-action@v4
2727
id: semantic
2828
with:
2929
dry_run: true
@@ -46,7 +46,8 @@ jobs:
4646
@semantic-release/git
4747
@semantic-release/changelog
4848
env:
49-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
GITHUB_TOKEN: ${{ secrets.PAT }}
50+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
5051

5152
- name: Test Outputs
5253
if: steps.semantic.outputs.new_release_published == 'true'
@@ -60,10 +61,10 @@ jobs:
6061
runs-on: ubuntu-latest
6162
steps:
6263
- name: Checkout
63-
uses: actions/checkout@v3
64+
uses: actions/checkout@v4
6465

6566
- name: Semantic Release
66-
uses: cycjimmy/semantic-release-action@v3
67+
uses: cycjimmy/semantic-release-action@v4
6768
id: semantic
6869
with:
6970
semantic_version: 15
@@ -79,7 +80,8 @@ jobs:
7980
@semantic-release/git@7
8081
@semantic-release/changelog@3
8182
env:
82-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83+
GITHUB_TOKEN: ${{ secrets.PAT }}
84+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
8385

8486
- name: Test Outputs
8587
if: steps.semantic.outputs.new_release_published == 'true'

SEMANTIC_VERSIONING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Semantic Versioning Guide
2+
3+
## Commit Message format
4+
5+
- `feat`: A new feature
6+
- `fix`: A bug fix
7+
- `docs`: Documentation only changes
8+
- `style`: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
9+
- `refactor`: A code change that neither fixes a bug nor adds a feature
10+
- `perf`: A code change that improves performance
11+
- `test`: Adding missing or correcting existing tests
12+
- `chore`: Changes to the build process or auxiliary tools and libraries such as documentation generation

0 commit comments

Comments
 (0)