Skip to content

Commit ab80ebd

Browse files
Improve GitHub workflow configurations
Add name to linter workflow, remove separate build job from npm publish workflow, and add corepack setup steps for publishing
1 parent 0cde319 commit ab80ebd

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.github/workflows/linter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Linter
2+
13
on:
24
push:
35
pull_request:

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,16 @@ on:
88
types: [created]
99

1010
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
16-
with:
17-
node-version: 22
18-
- run: pnpm install --prod --frozen-lockfile
19-
- run: pnpm build
20-
2111
publish-npm:
22-
needs: build
2312
runs-on: ubuntu-latest
2413
steps:
2514
- uses: actions/checkout@v4
2615
- uses: actions/setup-node@v4
2716
with:
2817
node-version: 22
2918
registry-url: https://registry.npmjs.org/
19+
- run: npm install -g corepack@latest
20+
- run: corepack enable
3021
- run: pnpm install --prod --frozen-lockfile
3122
- run: pnpm -r publish
3223
env:

0 commit comments

Comments
 (0)