Skip to content

Commit

Permalink
chore: run npm ci instead of npm install
Browse files Browse the repository at this point in the history
See https://docs.npmjs.com/cli/v10/commands/npm-ci .

`npm ci` runs faster.
Also, hopefully it will be more stable in terms of Docker cache.

Signed-off-by: Artem Chernyshev <[email protected]>
  • Loading branch information
Unix4ever committed Nov 13, 2023
1 parent c281f8f commit 03cced1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2023-11-06T13:30:11Z by kres 7206389-dirty.
# Generated on 2023-11-13T14:26:45Z by kres c281f8f-dirty.

# common variables

Expand All @@ -21,7 +21,7 @@ VTPROTOBUF_VERSION ?= 0.5.0
DEEPCOPY_VERSION ?= v0.5.5
GOLANGCILINT_VERSION ?= v1.55.2
GOFUMPT_VERSION ?= v0.5.0
GO_VERSION ?= 1.21.3
GO_VERSION ?= 1.21.4
GOIMPORTS_VERSION ?= v0.14.0
GO_BUILDFLAGS ?=
GO_LDFLAGS ?=
Expand Down
2 changes: 1 addition & 1 deletion internal/project/js/toolchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (toolchain *Toolchain) CompileDockerfile(output *dockerfile.Output) error {
Step(step.Copy(filepath.Join(toolchain.sourceDir, "package-lock.json"), "./")).
Step(step.Script("npm version ${VERSION}").
MountCache(toolchain.meta.NpmCachePath)).
Step(step.Script("npm install").
Step(step.Script("npm ci").
MountCache(toolchain.meta.NpmCachePath)).
Step(step.Copy("frontend/.eslintrc.yaml", "./")).
Step(step.Copy(filepath.Join(toolchain.sourceDir, "babel.config.js"), "./")).
Expand Down

0 comments on commit 03cced1

Please sign in to comment.