include: - project: 'layers-digital/internal-tools/layers-gitlab-shared-cicd-pipeline' ref: main file: '/shared-pipeline.gitlab-ci.yml' stages: - test - publish test: image: bitnami/node:20 stage: test script: - yarn install - yarn build # Add tests cache: key: files: - yarn.lock prefix: yarn-lock- paths: - node_modules/ npm_publish: stage: publish image: bitnami/node:20 only: - tags script: - yarn install - yarn build - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc - npm publish --access=public