Skip to content

Commit

Permalink
Merge pull request #110 from crazy-max/corepack
Browse files Browse the repository at this point in the history
chore: use corepack to install yarn
  • Loading branch information
crazy-max committed Apr 27, 2024
2 parents 0ac42c2 + f355ddd commit c6a30dd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 877 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Expand Up @@ -5,6 +5,7 @@ concurrency:
cancel-in-progress: true

on:
workflow_dispatch:
schedule:
- cron: '0 10 * * *'
push:
Expand Down
874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.3.cjs

This file was deleted.

2 changes: 0 additions & 2 deletions .yarnrc.yml
Expand Up @@ -11,5 +11,3 @@ nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.6.3.cjs
7 changes: 6 additions & 1 deletion dev.Dockerfile
Expand Up @@ -4,8 +4,13 @@ ARG NODE_VERSION=20

FROM node:${NODE_VERSION}-alpine AS base
RUN apk add --no-cache cpio findutils git
RUN yarn config set --home enableTelemetry 0
WORKDIR /src
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache <<EOT
corepack enable
yarn --version
yarn config set --home enableTelemetry 0
EOT

FROM base AS deps
RUN --mount=type=bind,target=.,rw \
Expand Down

0 comments on commit c6a30dd

Please sign in to comment.