File tree Expand file tree Collapse file tree 2 files changed +69
-0
lines changed
Expand file tree Collapse file tree 2 files changed +69
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Lint PR"
2+
3+ on :
4+ pull_request_target :
5+ types :
6+ - opened
7+ - edited
8+ - synchronize
9+ - reopened
10+
11+ permissions :
12+ pull-requests : read
13+
14+ jobs :
15+ main :
16+ name : Validate PR title
17+ runs-on : ubuntu-latest
18+ environment : dev
19+ steps :
20+ - uses : amannn/action-semantic-pull-request@v5
21+ env :
22+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Semantic Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : write
10+ issues : write
11+
12+ jobs :
13+ semantic-release :
14+ runs-on : ubuntu-latest
15+ environment : dev
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+ persist-credentials : false
22+
23+ - name : Setup SSH
24+ uses : webfactory/ssh-agent@v0.8.0
25+ with :
26+ ssh-private-key : ${{ secrets.GA_DEPLOY_KEY }}
27+
28+ # use SSH url to ensure git commit using a deploy key bypasses the main
29+ # branch protection rule
30+ - name : Configure Git for SSH Push
31+ run : git remote set-url origin "git@github.com:${{ github.repository }}.git"
32+
33+ - name : Setup Node.js
34+ uses : actions/setup-node@v4
35+ with :
36+ node-version : " lts/*"
37+
38+ - name : Install Dependencies
39+ run : npm clean-install
40+
41+ - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
42+ run : npm audit signatures
43+
44+ - name : Run Semantic Release
45+ run : npx semantic-release
46+ env :
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments