Add configuration for yarn 2 pnp
This commit is contained in:
parent
33dcbab6d5
commit
1d74c60272
19 changed files with 7833 additions and 20 deletions
|
@ -1,38 +1,30 @@
|
|||
image: node:lts
|
||||
|
||||
stages:
|
||||
- prepare
|
||||
- test
|
||||
- build
|
||||
- release
|
||||
|
||||
cache: &global_cache
|
||||
key:
|
||||
files:
|
||||
- package-lock.json
|
||||
policy: pull
|
||||
paths:
|
||||
- node_modules/
|
||||
before_script:
|
||||
- yarn install
|
||||
|
||||
install-dependencies:
|
||||
stage: prepare
|
||||
script:
|
||||
- npm install
|
||||
cache:
|
||||
<<: *global_cache
|
||||
policy: pull-push
|
||||
cache: &global_cache
|
||||
paths:
|
||||
- node_modules
|
||||
- "packages/*/node_modules"
|
||||
- .eslint
|
||||
|
||||
lint:
|
||||
stage: test
|
||||
script:
|
||||
- npm run lint
|
||||
- yarn lint
|
||||
cache:
|
||||
<<: *global_cache
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- npm run test:ci
|
||||
- yarn test:ci
|
||||
cache:
|
||||
<<: *global_cache
|
||||
artifacts:
|
||||
|
@ -44,7 +36,7 @@ test:
|
|||
build:
|
||||
stage: build
|
||||
script:
|
||||
- npm run build
|
||||
- yarn build
|
||||
- mv dist ds4
|
||||
cache:
|
||||
<<: *global_cache
|
||||
|
@ -56,6 +48,7 @@ build:
|
|||
.release-template: &release-template
|
||||
stage: release
|
||||
before_script:
|
||||
- yarn install
|
||||
- apt update
|
||||
- apt install --yes jq
|
||||
- REPOSITORY_URL=$(echo "${CI_REPOSITORY_URL}" | sed -e "s|gitlab-ci-token:.*@|${RELEASE_TOKEN}:${RELEASE_TOKEN_SECRET}@|g")
|
||||
|
@ -67,7 +60,7 @@ build:
|
|||
cache:
|
||||
<<: *global_cache
|
||||
script: |
|
||||
npm run updateManifest -- --update=${RELEASE_TYPE}
|
||||
yarn updateManifest -- --update=${RELEASE_TYPE}
|
||||
RELEASE_VERSION=$(jq -r '.version' < package.json)
|
||||
git add package.json package-lock.json src/system.json
|
||||
git --no-pager diff
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue