Appearance
Pipeline
Examples of pipeline configurations are shown here.
GitLab CI
As a simple example, here is the implementation of the .gitlab-ci.yml for this package:
yaml
include:
- project: 'shared/node-ci'
ref: main
file: '/gitlab-shared/.node-ci-base.yml'
stages:
- test
- release
test:
stage: test
script:
- # Do some tests
release:
stage: release
extends: .node-ci-pnpm
rules:
- if: $CI_COMMIT_BRANCH == "release" || $CI_COMMIT_BRANCH == "staging"
variables:
NPM_TOKEN: $CI_JOB_TOKEN
script:
- pnpm semantic-release
artifacts:
name: "dist"
paths:
- dist/