Skip to content

Commit 5538623

Browse files
committed
Realign CI and Docker build Deno package installs
fixing cache for non-npm packages for Docker build.
1 parent 3929542 commit 5538623

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
run: |
7272
(
7373
export LD_LIBRARY_PATH=/opt/deno/lib
74-
deno install --frozen --vendor=false && deno install --frozen
74+
deno install --frozen --vendor=false && deno ci
7575
) \
7676
&& sha256sum -c <<'SHA256' \
7777
&& sed -i -f - node_modules/autoprefixer/lib/supports.js <<'SED'

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ USER 1000
1010

1111
COPY --chown=1000 --link deno.json deno.lock ./
1212

13+
# initial `--vendor=false` install allows non-`node_modules` packages to be installed to (and therefore from) cache
1314
# hash + patch: https://github.com/postcss/autoprefixer/pull/1550
1415
RUN --mount=type=cache,id=deno,target=/deno-dir,uid=1000 \
15-
deno ci \
16+
deno install --frozen --vendor=false && deno ci \
1617
&& sha256sum -c <<'SHA256' \
1718
&& sed -i -f - node_modules/autoprefixer/lib/supports.js <<'SED'
1819
68c4208ae3e1aad176f61fe7ba27d351d8b8f931dad1b3938702c3bb80106d24 node_modules/autoprefixer/lib/supports.js

0 commit comments

Comments
 (0)