Skip to content

Commit e248646

Browse files
author
protobuf-ci-cd
committed
chore(ci): align workflows with Makefile to avoid drift
1 parent 8630fee commit e248646

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

.github/workflows/check-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
node-version: 20
1717
check-latest: true
1818
cache: 'pnpm'
19-
- run: pnpm install
19+
- run: make install-dependencies
2020
- name: Check title
2121
run: |
2222
title=$(cat <<- "EOF"

.github/workflows/deploy-doc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
id: pages
4747
uses: actions/configure-pages@v5
4848
- name: Install dependencies
49-
run: pnpm install
49+
run: make install-dependencies
5050
- name: Build doc
51-
run: pnpm run doc
51+
run: make doc
5252
- name: Upload artifact
5353
uses: actions/upload-pages-artifact@v3
5454
with:

.github/workflows/deploy-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ jobs:
3030
registry-url: 'https://registry.npmjs.org/'
3131
node-version: 20
3232
check-latest: true
33-
- run: pnpm install
34-
- run: pnpm run build
33+
- run: make install-dependencies
34+
- run: make build
3535

3636
- name: Version package with lerna
37-
run: pnpm lerna version -y --no-private --force-git-tag --create-release github
37+
run: make publish
3838
env:
3939
HUSKY: 0
4040
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4141

4242
# https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry
4343
- name: Publish to npm
44-
run: pnpm -r publish --access public --tag latest
44+
run: make publish
4545
env:
4646
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4747
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/run-tests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
node-version: 20
2020
check-latest: true
2121
cache: 'pnpm'
22-
- run: pnpm install
23-
- run: pnpm typecheck
22+
- run: make install-dependencies
23+
- run: make typing
2424
lint:
2525
runs-on: ubuntu-24.04
2626
steps:
@@ -32,9 +32,9 @@ jobs:
3232
node-version: 20
3333
check-latest: true
3434
cache: 'pnpm'
35-
- run: pnpm install
36-
- run: pnpm run build
37-
- run: pnpm run lint
35+
- run: make install-dependencies
36+
- run: make build
37+
- run: make lint
3838
test:
3939
runs-on: ubuntu-24.04
4040
strategy:
@@ -54,7 +54,7 @@ jobs:
5454
node-version: ${{ matrix.node }}
5555
check-latest: true
5656
cache: 'pnpm'
57-
- run: pnpm install
58-
- run: pnpm run build
59-
- run: pnpm run test:coverage --environment ${{ matrix.test-environment }}
57+
- run: make install-dependencies
58+
- run: make build
59+
- run: make test-coverage --environment ${{ matrix.test-environment }}
6060
- uses: codecov/[email protected]

0 commit comments

Comments
 (0)