Skip to content

Commit

Permalink
chore(ci): Update to new yarn command for immutable installs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruler501 committed Mar 5, 2022
1 parent d2c6deb commit 66b28f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY ./jobs/package.json jobs/package.json
COPY ./yarn.lock yarn.lock
COPY ./.yarnrc.yml .yarnrc.yml

RUN yarn install --frozen-lockfile --production=false || yarn install --frozen-lockfile --production=false || yarn install --frozen-lockfile --production=false; yarn cache clean
RUN yarn install --immutable --production=false && yarn cache clean

COPY ./client/babel.config.cjs client/babel.config.cjs
COPY ./client/webpack.common.cjs client/webpack.common.cjs
Expand Down Expand Up @@ -47,5 +47,4 @@ COPY ./server/scripts server/scripts/
COPY ./server/serverjs server/serverjs/
COPY ./server/views server/views/

# RUN yarn install --frozen-lockfile --production=true || yarn install --frozen-lockfile --production=true || yarn install --frozen-lockfile --production=true; yarn cache clean
ENTRYPOINT sh -c 'yarn server'
2 changes: 1 addition & 1 deletion .docker/Dockerfile.jobs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY ./jobs/package.json jobs/package.json
COPY ./yarn.lock yarn.lock
COPY ./.yarnrc.yml .yarnrc.yml

RUN yarn install --frozen-lockfile --production=false || yarn install --frozen-lockfile --production=false || yarn install --frozen-lockfile --production=false; yarn cache clean
RUN yarn install --immutable --production=false && yarn cache clean

COPY ./client/nearley client/nearley/

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
node-version: '16.10'
cache: 'yarn'
- name: Setup
run: yarn install --frozen-lockfile --production=false || yarn install --frozen-lockfile --production=false || yarn install --frozen-lockfile --production=false
run: yarn install --immutable --production=false
- name: Run the CI script in yarn to check code style and unit tests.
run: yarn ci
- name: Check that no files were changed
Expand Down

0 comments on commit 66b28f7

Please sign in to comment.