UNPKG

@colisweb/rescript-toolkit

Version:

![ReScript Colisweb toolkit](/media/image.jpg)

66 lines (60 loc) 1.4 kB
include: - "https://colisweb-idl.gitlab.io/colisweb-open-source/ci-common/v20.3.1/templates/front.yml" variables: GIT_COMMIT_FILES: "" # ----------------------------------------------- # Test on MR # ----------------------------------------------- rescript build: extends: .rules-only-for-branch stage: test tags: - aws image: node:lts-bullseye cache: key: "$CI_COMMIT_REF_NAME" paths: - .yarn/ script: - yarn - npm run test version: extends: .version # ----------------------------------------------- # Publish npm # ----------------------------------------------- publish rescript-toolkit: image: node:lts-bullseye extends: .rules-only-for-tags tags: - aws script: - export NPM_TOKEN=${NPM_TOKEN:-undefined} - npm --no-git-tag-version version $(echo $CI_COMMIT_TAG | sed -e 's/^v//') - yarn - npm publish cache: key: "yarn-$CI_COMMIT_REF_SLUG" paths: - .yarn/ # ----------------------------------------------- # Build storybook # ----------------------------------------------- pages: image: node:lts-bullseye extends: .rules-only-for-main tags: - aws stage: deploy script: - export NPM_TOKEN=${NPM_TOKEN:-undefined} - yarn - yarn build - cp -a dist/. public/ artifacts: paths: - public cache: key: "yarn-$CI_COMMIT_REF_SLUG" paths: - .yarn/