fix(#1): remove duplicate npm ci from parallel CI steps
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

Woodpecker shares the workspace volume across steps. Only the install
step should run npm ci — parallel steps (lint, typecheck, test, etc.)
were each re-running npm ci concurrently, corrupting node_modules.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-14 22:47:06 -06:00
parent 07bf9dd9b4
commit 9df760cab2

View File

@@ -3,20 +3,17 @@ when:
variables: variables:
- &node_image "node:22-alpine" - &node_image "node:22-alpine"
- &install_deps |
corepack enable
npm ci
steps: steps:
install: install:
image: *node_image image: *node_image
commands: commands:
- *install_deps - corepack enable
- npm ci
lint: lint:
image: *node_image image: *node_image
commands: commands:
- *install_deps
- npm run lint - npm run lint
depends_on: depends_on:
- install - install
@@ -24,7 +21,6 @@ steps:
typecheck: typecheck:
image: *node_image image: *node_image
commands: commands:
- *install_deps
- npm run typecheck - npm run typecheck
depends_on: depends_on:
- install - install
@@ -32,7 +28,6 @@ steps:
format-check: format-check:
image: *node_image image: *node_image
commands: commands:
- *install_deps
- npm run format:check - npm run format:check
depends_on: depends_on:
- install - install
@@ -47,7 +42,6 @@ steps:
test: test:
image: *node_image image: *node_image
commands: commands:
- *install_deps
- npm run test:coverage - npm run test:coverage
depends_on: depends_on:
- install - install
@@ -55,7 +49,6 @@ steps:
build: build:
image: *node_image image: *node_image
commands: commands:
- *install_deps
- npm run build - npm run build
depends_on: depends_on:
- lint - lint
@@ -70,7 +63,6 @@ steps:
GITEA_TOKEN: GITEA_TOKEN:
from_secret: gitea_token from_secret: gitea_token
commands: commands:
- *install_deps
- npm run build - npm run build
- | - |
echo "//git.mosaicstack.dev/api/packages/mosaic/npm/:_authToken=$$GITEA_TOKEN" > .npmrc echo "//git.mosaicstack.dev/api/packages/mosaic/npm/:_authToken=$$GITEA_TOKEN" > .npmrc