I am trying to copy @jsplumbtoolkit@jsplumblibraries into node modules folder of ci pipeline on 2nd step and pass that node_modules to third step for angular build. But not able to.
please suggest changes on step two.
Angular pipeline :-
image: node:16
pipelines:
branches:
ci-cd-test-branch:
- step:
name: Installation
caches:
- node
script:
- npm install
artifacts:
- node_modules/** # Save modules for next steps
- step:
name: copy jsplumb to node modules artifact
script:
- cp -r @jsplumbtoolkit @jsplumb node_modules/
- step:
name: Build
script:
- npm run build:prod
artifacts:
- dist/** # Save build for next steps