Skip to content

Commit

Permalink
add yarn 4.x to workdflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Husky-Devel committed Dec 27, 2024
1 parent 0ee6227 commit 7548a2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
network=host
buildkitd-flags: --debug

- name: Install Yarn 4.5.3
run: |
corepack enable
corepack prepare [email protected] --activate
- name: Generate cache key
id: cache-key
run: echo "key=${{ runner.os }}-buildx-${{ hashFiles('**/yarn.lock') }}" >> $GITHUB_OUTPUT
Expand All @@ -41,6 +46,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Yarn 4.5.3
run: |
corepack enable
corepack prepare [email protected] --activate
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN apt-get update && \

# Install dependencies
COPY package.json yarn.lock ./
RUN yarn install
RUN yarn install --frozen-lockfile

# Build the app
COPY . .
Expand Down

0 comments on commit 7548a2e

Please sign in to comment.