specmatic 0.31.1 → 0.38.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.
- package/CONTRIBUTING.MD +29 -0
- package/package.json +1 -1
- package/specmatic.jar +0 -0
package/CONTRIBUTING.MD
CHANGED
|
@@ -44,6 +44,35 @@ definitions before, you can read more about it in its
|
|
|
44
44
|
Though this library itself is not written in Typescript we use
|
|
45
45
|
[dtslint](https://github.com/microsoft/dtslint) to lint our typings.
|
|
46
46
|
|
|
47
|
+
|
|
48
|
+
## Publishing a new version to npm
|
|
49
|
+
|
|
50
|
+
### Prerequisites
|
|
51
|
+
* Access to push to master.
|
|
52
|
+
* Node version > 14 is needed.
|
|
53
|
+
|
|
54
|
+
### Step 1: Make the changes
|
|
55
|
+
If there is a new version available in [specmatic downloads](https://specmatic.in/download/), download it in the project root, replacing the older version. Commit the new version.
|
|
56
|
+
|
|
57
|
+
### Step 2: Update node module's version
|
|
58
|
+
`npm version` displays the existing version of the npm module.
|
|
59
|
+
|
|
60
|
+
Use the suitable command to auto increment the npm version:
|
|
61
|
+
|
|
62
|
+
`npm version major`
|
|
63
|
+
|
|
64
|
+
`npm version minor`
|
|
65
|
+
|
|
66
|
+
`npm version patch`
|
|
67
|
+
|
|
68
|
+
OR
|
|
69
|
+
|
|
70
|
+
Update the version to a specific semver by using command `npm version x.y.z`
|
|
71
|
+
|
|
72
|
+
### Step 3: Publish to npm
|
|
73
|
+
If the version updated in step 2 is different from the one available in npm global repository, push to remote master on github will automatically build, run the tests and publish the new version to npm. You can check the status of the publish in [github actions](https://github.com/znsio/specmatic-node/actions). Though, it might take some time to reflect in the [specmatic npm page](https://www.npmjs.com/package/specmatic) because of the npm caching.
|
|
74
|
+
|
|
75
|
+
|
|
47
76
|
## Help needed
|
|
48
77
|
|
|
49
78
|
Please checkout the [the open issues][issues]
|
package/package.json
CHANGED
package/specmatic.jar
CHANGED
|
Binary file
|