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.
- package/.editorconfig +9 -0
- package/.eslintrc +6 -0
- package/.github/ISSUE_TEMPLATE/ask-a-question.md +7 -0
- package/.github/ISSUE_TEMPLATE/bug-report.md +29 -0
- package/.github/workflows/ci.yaml +33 -0
- package/.github/workflows/release-please.yml +31 -0
- package/.versionrc +10 -0
- package/CHANGELOG.md +524 -0
- package/LICENSE.txt +16 -0
- package/README.md +480 -0
- package/bin/cli.js +14 -0
- package/command.js +145 -0
- package/defaults.js +40 -0
- package/index.js +92 -0
- package/lib/checkpoint.js +12 -0
- package/lib/configuration.js +41 -0
- package/lib/format-commit-message.js +4 -0
- package/lib/latest-semver-tag.js +17 -0
- package/lib/lifecycles/bump.js +172 -0
- package/lib/lifecycles/changelog.js +66 -0
- package/lib/lifecycles/commit.js +69 -0
- package/lib/lifecycles/tag.js +39 -0
- package/lib/preset-loader.js +17 -0
- package/lib/print-error.js +12 -0
- package/lib/run-exec.js +18 -0
- package/lib/run-execFile.js +18 -0
- package/lib/run-lifecycle-script.js +13 -0
- package/lib/updaters/index.js +85 -0
- package/lib/updaters/types/json.js +25 -0
- package/lib/updaters/types/plain-text.js +7 -0
- package/lib/write-file.js +6 -0
- package/package.json +69 -0
- package/renovate.json +9 -0
- package/test/config-files.spec.js +179 -0
- package/test/core.spec.js +850 -0
- package/test/git.spec.js +468 -0
- package/test/mocks/VERSION-1.0.0.txt +1 -0
- package/test/mocks/VERSION-6.3.1.txt +1 -0
- package/test/mocks/manifest-6.3.1.json +3 -0
- package/test/mocks/mix.exs +28 -0
- package/test/mocks/updater/customer-updater.js +12 -0
- package/test/mocks/version.txt +0 -0
- package/test/preset.spec.js +52 -0
package/.editorconfig
ADDED
package/.eslintrc
ADDED
|
@@ -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