--- when: path: "frontend/**" event: [push, tag] variables: - &frontend_image "cl00e9ment/node.js-builder:git" clone: git: image: woodpeckerci/plugin-git settings: skip_verify: true partial: false tags: true steps: "prepare:version": image: bitnami/git:2.43.0 group: prepare commands: - . ./version.sh "prepare:frontend": image: *frontend_image group: prepare commands: - npm install directory: frontend "lint:style": image: *frontend_image commands: - npm run prettier directory: frontend "lint:analyze": image: *frontend_image commands: - npm run lint directory: frontend "build:frontend": image: *frontend_image commands: - npm run build directory: frontend "build:tsc": image: *frontend_image commands: - npm install -D typescript - npm run typecheck directory: frontend "analyze:sbom": image: *frontend_image commands: - rm -rf node_modules - npm install - npx @cyclonedx/cyclonedx-npm --output-file bom.json directory: frontend "deploy:frontend": image: alpine:latest commands: - echo "deploy frontend" - env directory: frontend when: - event: [manual] #depends_on: # - "lint_general"