Skip to content

Commits on Source 8

......@@ -44,12 +44,14 @@ test:
needs: []
stage: test
rules:
- if: $CI_COMMIT_AUTHOR == "semantic-release-bot <[email protected]>"
when: never
- if: $CI_COMMIT_TAG =~ /^[vV](\d+)\.(\d+)\.(\d+)-?([a-zA-Z-\d\.]*)\+?([a-zA-Z-\d\.]*)$/
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_AUTHOR == "semantic-release-bot <[email protected]>"
when: never
when: always
artifacts:
paths:
- coverage
......@@ -65,13 +67,17 @@ build:
- yarn install
script:
- yarn run build
- cd packages/client && yarn run generate
needs: []
rules:
- if: $CI_COMMIT_AUTHOR == "semantic-release-bot <[email protected]>"
when: never
- if: $CI_COMMIT_TAG =~ /^[vV](\d+)\.(\d+)\.(\d+)-?([a-zA-Z-\d\.]*)\+?([a-zA-Z-\d\.]*)$/
when: always
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_AUTHOR == "semantic-release-bot <[email protected]>"
when: never
when: always
artifacts:
paths:
- build
......@@ -86,6 +92,7 @@ docker:
- if: $CI_COMMIT_AUTHOR == "semantic-release-bot <[email protected]>"
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always
script:
- sed 's/# DEPLOY //g' Dockerfile > Dockerfile.deploy
- >
......@@ -146,12 +153,17 @@ deploy:production:
- curl -X POST "${DEPLOY_URL}?tag=${CI_COMMIT_TAG}"
release:
image: node:16-buster-slim
image: registry.pentacore.se/toolbox/semantic-release-image:main
stage: release
rules:
- if: $CI_COMMIT_AUTHOR == "semantic-release-bot <[email protected]>"
when: never
- if: $CI_COMMIT_TAG =~ /^[vV](\d+)\.(\d+)\.(\d+)-?([a-zA-Z-\d\.]*)\+?([a-zA-Z-\d\.]*)$/
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always
before_script:
- apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates
- npm install -g semantic-release @semantic-release/gitlab @semantic-release/exec @semantic-release/git @semantic-release/changelog
script:
- semantic-release
only:
- master
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
yarn commitlint --edit $1
command_exists () {
command -v "$1" >/dev/null 2>&1
}
# Workaround for Windows 10, Git Bash and Yarn
if command_exists winpty && test -t 1; then
exec < /dev/tty
fi
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
yarn eslint "packages/**/*.{js,jsx,ts,tsx}" --fix
yarn lint-staged
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
......@@ -5,7 +5,7 @@
"plugins": [
[
"@semantic-release/exec", {
"verifyReleaseCmd": "sed -E -i '0,/description/s/\"version\": \"[0-9]+\\.[0-9]+\\.[0-9]+\"/\"version\": \"1.0.3\"/m;t' package.json",
"verifyReleaseCmd": "sed -E -i '0,/description/s/\"version\": \"[0-9]+\\.[0-9]+\\.[0-9]+\"/\"version\": \"${nextRelease.version}\"/m;t' package.json",
"generateNotesCmd": "echo ${nextRelease.version} | grep -Eo '[0-9]+\\.[0-9]+\\.[0-9]+' > VERSION"
}
],
......
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Start Server" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/Server/package.json" />
<package-json value="$PROJECT_DIR$/packages/server/package.json" />
<command value="run" />
<scripts>
<script value="dev" />
......
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.