Skip to content

Commit 276eb97

Browse files
committed
fix: fixing workflows to work independently
1 parent 7eb9a76 commit 276eb97

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/deploy-site.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030

31+
# DO NOT USE pnpm here, it will cause issues with Docker build
3132
- name: Install Dependencies
3233
run: npm install
3334

.github/workflows/docker-publish.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,19 @@ jobs:
1818
with:
1919
node-version: 22
2020

21+
# DO NOT USE pnpm here, it will cause issues with Docker build
2122
- name: Install Dependencies
22-
run: npm install
23+
run: npm install
24+
25+
- name: Install pnpm
26+
run: npm install -g pnpm
2327

2428
- name: Build
2529
run: npm run build
2630

31+
- name: Set version variable
32+
run: echo "VERSION=$(node -p \"require('./package.json').version\")" >> $GITHUB_ENV
33+
2734
- name: Set up Docker Buildx
2835
uses: docker/setup-buildx-action@v3
2936

@@ -37,7 +44,7 @@ jobs:
3744
uses: docker/build-push-action@v5
3845
with:
3946
push: true
40-
tags: jaredwray/mockhttp:${{ github.event.release.tag_name }}
47+
tags: jaredwray/mockhttp:${{ env.VERSION }}
4148

4249
- name: Build and push Docker image as Latest
4350
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)