commit-and-tag-version 9.5.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 (43) hide show
  1. package/.editorconfig +9 -0
  2. package/.eslintrc +6 -0
  3. package/.github/ISSUE_TEMPLATE/ask-a-question.md +7 -0
  4. package/.github/ISSUE_TEMPLATE/bug-report.md +29 -0
  5. package/.github/workflows/ci.yaml +33 -0
  6. package/.github/workflows/release-please.yml +31 -0
  7. package/.versionrc +10 -0
  8. package/CHANGELOG.md +524 -0
  9. package/LICENSE.txt +16 -0
  10. package/README.md +480 -0
  11. package/bin/cli.js +14 -0
  12. package/command.js +145 -0
  13. package/defaults.js +40 -0
  14. package/index.js +92 -0
  15. package/lib/checkpoint.js +12 -0
  16. package/lib/configuration.js +41 -0
  17. package/lib/format-commit-message.js +4 -0
  18. package/lib/latest-semver-tag.js +17 -0
  19. package/lib/lifecycles/bump.js +172 -0
  20. package/lib/lifecycles/changelog.js +66 -0
  21. package/lib/lifecycles/commit.js +69 -0
  22. package/lib/lifecycles/tag.js +39 -0
  23. package/lib/preset-loader.js +17 -0
  24. package/lib/print-error.js +12 -0
  25. package/lib/run-exec.js +18 -0
  26. package/lib/run-execFile.js +18 -0
  27. package/lib/run-lifecycle-script.js +13 -0
  28. package/lib/updaters/index.js +85 -0
  29. package/lib/updaters/types/json.js +25 -0
  30. package/lib/updaters/types/plain-text.js +7 -0
  31. package/lib/write-file.js +6 -0
  32. package/package.json +69 -0
  33. package/renovate.json +9 -0
  34. package/test/config-files.spec.js +179 -0
  35. package/test/core.spec.js +850 -0
  36. package/test/git.spec.js +468 -0
  37. package/test/mocks/VERSION-1.0.0.txt +1 -0
  38. package/test/mocks/VERSION-6.3.1.txt +1 -0
  39. package/test/mocks/manifest-6.3.1.json +3 -0
  40. package/test/mocks/mix.exs +28 -0
  41. package/test/mocks/updater/customer-updater.js +12 -0
  42. package/test/mocks/version.txt +0 -0
  43. package/test/preset.spec.js +52 -0
package/.editorconfig ADDED
@@ -0,0 +1,9 @@
1
+ # EditorConfig is awesome: http://EditorConfig.org
2
+
3
+ root = true
4
+
5
+ [*]
6
+ trim_trailing_whitespace=true
7
+ indent_style = space
8
+ indent_size = 2
9
+ insert_final_newline = true
package/.eslintrc ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "standard",
3
+ "rules": {
4
+ "no-var": "error"
5
+ }
6
+ }
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: Ask a Question
3
+ about: '"How can I X?" – ask a question about how to use commit-and-tag-version.'
4
+ title: ""
5
+ labels: question
6
+ assignees: ""
7
+ ---
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: Bug Report
3
+ about: Use this template if something isn't working as expected.
4
+ title: ""
5
+ labels: bug
6
+ assignees: ""
7
+ ---
8
+
9
+ **Describe the bug**
10
+ A clear and concise description of what the bug is.
11
+
12
+ **Current behavior**
13
+ A clear and concise description of the behavior.
14
+
15
+ **Expected behavior**
16
+ A clear and concise description of what you expected to happen.
17
+
18
+ **Environment**
19
+
20
+ - `commit-and-tag-version` version(s): [e.g. v6.0.0, v8.0.0, master]
21
+ - Node/npm version: [e.g. Node 10/npm 6]
22
+ - OS: [e.g. OSX 10.13.4, Windows 10]
23
+
24
+ **Possible Solution**
25
+
26
+ <!--- If you have suggestions on a fix for the bug -->
27
+
28
+ **Additional context**
29
+ Add any other context about the problem here. Or a screenshot if applicable
@@ -0,0 +1,33 @@
1
+ on:
2
+ push:
3
+ branches:
4
+ - master
5
+ pull_request:
6
+ types: [ assigned, opened, synchronize, reopened, labeled ]
7
+ name: ci
8
+ jobs:
9
+ test:
10
+ runs-on: ${{ matrix.os }}
11
+ strategy:
12
+ matrix:
13
+ node: [10, 12, 14]
14
+ os: [ubuntu-latest, windows-latest]
15
+ env:
16
+ OS: ${{ matrix.os }}
17
+ NODE_VERSION: ${{ matrix.node }}
18
+ steps:
19
+ - uses: actions/checkout@v2
20
+ - run: git fetch --prune --unshallow
21
+ - run: git config --global user.name 'Actions'
22
+ - run: git config --global user.email 'dummy@example.org'
23
+ - uses: actions/setup-node@v2
24
+ with:
25
+ node-version: ${{ matrix.node }}
26
+ - run: node --version
27
+ - run: npm install --engine-strict
28
+ - run: npm test
29
+ - run: npm run coverage
30
+ - name: Codecov
31
+ uses: codecov/codecov-action@v2
32
+ with:
33
+ env_vars: OS, NODE_VERSION
@@ -0,0 +1,31 @@
1
+ on:
2
+ push:
3
+ branches:
4
+ - master
5
+ name: release-please
6
+ jobs:
7
+ release-please:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: GoogleCloudPlatform/release-please-action@v3
11
+ id: release
12
+ with:
13
+ token: ${{ secrets.GITHUB_TOKEN }}
14
+ release-type: node
15
+ package-name: standard-version
16
+ # The logic below handles the npm publication:
17
+ - uses: actions/checkout@v2
18
+ # these if statements ensure that a publication only occurs when
19
+ # a new release is created:
20
+ if: ${{ steps.release.outputs.release_created }}
21
+ - uses: actions/setup-node@v1
22
+ with:
23
+ node-version: 12
24
+ registry-url: 'https://registry.npmjs.org'
25
+ if: ${{ steps.release.outputs.release_created }}
26
+ - run: npm ci
27
+ if: ${{ steps.release.outputs.release_created }}
28
+ - run: npm publish
29
+ env:
30
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
31
+ if: ${{ steps.release.outputs.release_created }}
package/.versionrc ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "types": [
3
+ {"type":"feat","section":"Features"},
4
+ {"type":"fix","section":"Bug Fixes"},
5
+ {"type":"test","section":"Tests", "hidden": true},
6
+ {"type":"build","section":"Build System", "hidden": true},
7
+ {"type":"ci","hidden":true}
8
+ ]
9
+ }
10
+