@percy/cli 1.16.0 → 1.19.0-alpha.0

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.
Files changed (2) hide show
  1. package/README.md +35 -0
  2. package/package.json +11 -11
package/README.md CHANGED
@@ -60,6 +60,13 @@ use the following scripts for various development tasks:
60
60
  - `yarn readme` - generate cli commands readme usage
61
61
  - `yarn test` - run all tests, one package after another
62
62
  - `yarn test:coverage` - run all tests with coverage, one package after another
63
+ - `yarn global:link` - links all packages being developed as global.
64
+ - requires `yarn build` to be run before
65
+ - we can then consume this package using
66
+ `[npm|yarn] link @percy/[core|cli..]`
67
+ - **Note**: linking is only required once, subsequent changes for development requires running build command.
68
+
69
+ - `yarn global:unlink` - unlinks all packages globally
63
70
 
64
71
  Individual package scripts can be invoked using yarn's
65
72
  [workspace](https://classic.yarnpkg.com/en/docs/cli/workspace/) command. For example:
@@ -67,3 +74,31 @@ Individual package scripts can be invoked using yarn's
67
74
  ```sh-session
68
75
  $ yarn workspace @percy/core test
69
76
  ```
77
+
78
+
79
+ ## Publish
80
+
81
+ Most of the repos have similar setup as CLI, steps as follows
82
+
83
+ 1. bump version
84
+
85
+ ```
86
+ yarn bump-version
87
+ ```
88
+
89
+ 2. commit with following commit message => `:bookmark: vTAG`
90
+
91
+ 3. Draft a new release and publish it
92
+
93
+ This will run release.yml workflow on github actions, which publishes the NPM packages
94
+
95
+ ### Publish with specific tag
96
+
97
+ Currently release workflow only support publishing with latest tag.
98
+ To publish with alpha/any other TAG.
99
+
100
+ 1. follow till step 2 above and then run
101
+
102
+ ```
103
+ yarn lerna publish from-package --dist-tag TAG
104
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/cli",
3
- "version": "1.16.0",
3
+ "version": "1.19.0-alpha.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,15 +30,15 @@
30
30
  "test:coverage": "yarn test --coverage"
31
31
  },
32
32
  "dependencies": {
33
- "@percy/cli-app": "1.16.0",
34
- "@percy/cli-build": "1.16.0",
35
- "@percy/cli-command": "1.16.0",
36
- "@percy/cli-config": "1.16.0",
37
- "@percy/cli-exec": "1.16.0",
38
- "@percy/cli-snapshot": "1.16.0",
39
- "@percy/cli-upload": "1.16.0",
40
- "@percy/client": "1.16.0",
41
- "@percy/logger": "1.16.0"
33
+ "@percy/cli-app": "1.19.0-alpha.0",
34
+ "@percy/cli-build": "1.19.0-alpha.0",
35
+ "@percy/cli-command": "1.19.0-alpha.0",
36
+ "@percy/cli-config": "1.19.0-alpha.0",
37
+ "@percy/cli-exec": "1.19.0-alpha.0",
38
+ "@percy/cli-snapshot": "1.19.0-alpha.0",
39
+ "@percy/cli-upload": "1.19.0-alpha.0",
40
+ "@percy/client": "1.19.0-alpha.0",
41
+ "@percy/logger": "1.19.0-alpha.0"
42
42
  },
43
- "gitHead": "147d3a6f249771252ee6cf03c9af44e4e21e1c55"
43
+ "gitHead": "84a27b8600c45ca67f8dd9b3403a0a8913e7c6f3"
44
44
  }