Skip to content

Commit 02aad6a

Browse files
authored
chore: clean up gha workflows (#11)
1 parent bdee527 commit 02aad6a

File tree

2 files changed

+12
-34
lines changed

2 files changed

+12
-34
lines changed

.github/workflows/code_health.yaml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,16 @@ on:
66
- main
77
pull_request:
88
jobs:
9-
prettier:
9+
check-style:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
13-
with:
14-
config: ${{ vars.PERMISSIONS_CONFIG }}
15-
- name: Checkout Repository
16-
uses: actions/checkout@v2
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version-file: package.json
20-
cache: "npm"
21-
- name: Install dependencies
22-
run: |
23-
npm ci
24-
- run: |
25-
npm run check:format
26-
eslint:
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
30-
with:
31-
config: ${{ vars.PERMISSIONS_CONFIG }}
32-
- name: Checkout Repository
33-
uses: actions/checkout@v4
13+
- uses: actions/checkout@v4
3414
- uses: actions/setup-node@v4
3515
with:
3616
node-version-file: package.json
3717
cache: "npm"
3818
- name: Install dependencies
39-
run: |
40-
npm ci
41-
- run: |
42-
npm run check:lint
19+
run: npm ci
20+
- name: Run style check
21+
run: npm run check

.github/workflows/publish.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,20 @@ jobs:
1010
environment: Production
1111
steps:
1212
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
13-
with:
14-
config: ${{ vars.PERMISSIONS_CONFIG }}
15-
- name: Checkout Repository
16-
uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1714
- uses: actions/setup-node@v4
1815
with:
1916
node-version-file: package.json
2017
registry-url: "https://registry.npmjs.org"
2118
cache: "npm"
22-
- name: Install dependencies
19+
- name: Build package
2320
run: |
2421
npm ci
25-
- env:
22+
npm run build
23+
- name: Publish to NPM
24+
run: npm publish
25+
env:
2626
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
- name: Publish Github release
2728
run: |
28-
npm publish
29-
- run: |
3029
gh release create ${{ github.ref }} --title "${{ github.ref }}" --notes "Release ${{ github.ref }}" --generate-notes

0 commit comments

Comments
 (0)