Skip to content

Commit f28d8bf

Browse files
authored
Merge pull request #36 from jaredwray/chore-migrating-to-pnpm-for-workflows
chore: migrating to pnpm for workflows
2 parents 72af872 + f7603a0 commit f28d8bf

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/deploy-site.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
node-version: ${{ matrix.node-version }}
3030

3131
- name: Install Dependencies
32-
run: npm install
32+
run: npm install pnpm -g && pnpm install
3333

3434
- name: Build
35-
run: npm run build
35+
run: pnpm build
3636

3737
# Setup gcloud CLI
3838
- name: Authenticate with Google Cloud

.github/workflows/docker-publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
node-version: 22
2020

2121
- name: Install Dependencies
22-
run: npm install
22+
run: npm install pnpm -g && pnpm install
2323

2424
- name: Build
25-
run: npm run build
25+
run: pnpm build
2626

2727
- name: Set up Docker Buildx
2828
uses: docker/setup-buildx-action@v3
@@ -46,7 +46,7 @@ jobs:
4646
tags: jaredwray/mockhttp:latest
4747

4848
- name: Build Docker Markdown
49-
run: npm run docker:readme
49+
run: pnpm docker:readme
5050

5151
# Update Docker Hub description
5252
- name: Update Docker Hub description

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"docker:push": "docker push jaredwray/mockhttp",
1717
"docker:stop": "docker stop $(docker ps -a -q --filter ancestor=jaredwray/mockhttp --format=\"{{.ID}}\")",
1818
"docker:readme": "tsx ./scripts/create-docker-readme.ts",
19-
"prepare": "npm run build",
19+
"prepare": "pnpm build",
2020
"start": "node dist/index.js"
2121
},
2222
"repository": {

0 commit comments

Comments
 (0)