@toptal/davinci-ci 2.0.8 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 2.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`9b67beb3`](https://github.com/toptal/davinci/commit/9b67beb3aaf0e24193b2deaba3126c41e3ec9280), [`04fe7ffa`](https://github.com/toptal/davinci/commit/04fe7ffa161027d081c6ae870716bb06a2fcf73f)]:
|
|
8
|
+
- @toptal/davinci-cli-shared@1.7.0
|
|
9
|
+
|
|
10
|
+
## 2.0.9
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#1541](https://github.com/toptal/davinci/pull/1541) [`397a53c9`](https://github.com/toptal/davinci/commit/397a53c9add9f7e8d485648b51cd22676d97c78f) Thanks [@TomasSlama](https://github.com/TomasSlama)! - ---
|
|
15
|
+
- Update documentation about prefering individual davinci packages usage
|
|
16
|
+
|
|
3
17
|
## 2.0.8
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -8,26 +8,26 @@ Watch [this video](https://drive.google.com/file/d/1C5ApkATYCXZ8kTn2LeG5FkM4AveL
|
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
|
-
Use it by installing `yarn add @toptal/davinci` in your project.
|
|
11
|
+
Use it by installing `yarn add @toptal/davinci-ci` in your project.
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
15
|
### Commands
|
|
16
16
|
|
|
17
|
-
- `davinci
|
|
17
|
+
- `davinci-ci danger` - checks if the PR title and and commit messages comply with [Toptal's standards](https://toptal-core.atlassian.net/wiki/spaces/ENG/pages/210665897/Commit+Message+Quality)
|
|
18
18
|
|
|
19
|
-
- `davinci
|
|
19
|
+
- `davinci-ci danger --conventionalCommits` - checks if the PR title and and commit messages comply with [ConventionalCommits](https://www.conventionalcommits.org/en/v1.0.0/)
|
|
20
20
|
|
|
21
21
|
To check commit message quality locally just add `--local` argument
|
|
22
22
|
|
|
23
|
-
`davinci
|
|
23
|
+
`davinci-ci danger --local`
|
|
24
24
|
|
|
25
25
|
Using husky, you can check the commit message before pushing files changes.
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
28
|
"husky": {
|
|
29
29
|
"hooks": {
|
|
30
|
-
"pre-push": "yarn davinci
|
|
30
|
+
"pre-push": "yarn davinci-ci danger --local"
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
```
|
|
@@ -55,7 +55,10 @@ is_progressive_web_app: true
|
|
|
55
55
|
|
|
56
56
|
### Alias
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
You can use davinci ci both as a standalone command `davinci-ci [...args]`
|
|
59
|
+
or as a sub-command of the davinci command: `davinci ci [args...]`, in this case @toptal/davinci package is required.
|
|
60
|
+
Recommended way is to use individual davinci packages, i.e. `davinci-ci danger`.
|
|
61
|
+
|
|
59
62
|
|
|
60
63
|
### Commands you can use in GitHub PRs
|
|
61
64
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/davinci-ci",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "Continuos integrations tools for frontend projects",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@commitlint/cli": "^17.0.2",
|
|
34
34
|
"@commitlint/config-conventional": "^17.0.3",
|
|
35
|
-
"@toptal/davinci-cli-shared": "1.
|
|
35
|
+
"@toptal/davinci-cli-shared": "1.7.0",
|
|
36
36
|
"danger": "^11.0.7",
|
|
37
37
|
"markdown-table": "^2.0.0"
|
|
38
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/davinci-ci",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "Continuos integrations tools for frontend projects",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@commitlint/cli": "^17.0.2",
|
|
34
34
|
"@commitlint/config-conventional": "^17.0.3",
|
|
35
|
-
"@toptal/davinci-cli-shared": "1.
|
|
35
|
+
"@toptal/davinci-cli-shared": "1.7.0",
|
|
36
36
|
"danger": "^11.0.7",
|
|
37
37
|
"markdown-table": "^2.0.0"
|
|
38
38
|
}
|
|
@@ -138,7 +138,7 @@ pipeline {
|
|
|
138
138
|
-e SENTRY_PROJECT=${REPOSITORY_NAME} \
|
|
139
139
|
-e SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN} \
|
|
140
140
|
gcr.io/toptal-hub/${REPOSITORY_NAME}:${TAG} \
|
|
141
|
-
yarn davinci
|
|
141
|
+
yarn davinci-engine sentry-upload-source-maps
|
|
142
142
|
"""
|
|
143
143
|
} else {
|
|
144
144
|
info "Your current davinci version is not supporting uploading source maps to Sentry. Please update davinci package version in your app."
|
|
@@ -273,7 +273,7 @@ pipeline {
|
|
|
273
273
|
steps {
|
|
274
274
|
script {
|
|
275
275
|
PWD = sh(returnStdout: true, script: 'pwd').trim()
|
|
276
|
-
releasePackageCommand = 'yarn davinci
|
|
276
|
+
releasePackageCommand = 'yarn davinci-engine release-package'
|
|
277
277
|
|
|
278
278
|
def outputVersionParamExistsInDavinci = hasParamInDavinciCommand(
|
|
279
279
|
command: 'engine release-package',
|
|
@@ -126,7 +126,7 @@ pipeline {
|
|
|
126
126
|
-v ${PWD}/.git:/app/.git \
|
|
127
127
|
gcr.io/toptal-hub/${repositoryName}:${commitId} \
|
|
128
128
|
/bin/bash -c "yarn ${params.BUILD_PACKAGE_SCRIPT_NAME} && \
|
|
129
|
-
yarn davinci
|
|
129
|
+
yarn davinci-engine publish-package \
|
|
130
130
|
--alpha \
|
|
131
131
|
--outputVersion /artifacts/.version \
|
|
132
132
|
--branch ${sourceBranch}"
|