move-semver-tags-action 3.0.22 → 3.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [3.1.0](https://github.com/kellyselden/move-semver-tags-action/compare/v3.0.23...v3.1.0) (2023-01-15)
6
+
7
+
8
+ ### Features
9
+
10
+ * add CLI ([ab135d4](https://github.com/kellyselden/move-semver-tags-action/commit/ab135d4a10646026d3119b50ec136492618fd290))
11
+
12
+ ### [3.0.23](https://github.com/kellyselden/move-semver-tags-action/compare/v3.0.22...v3.0.23) (2023-01-15)
13
+
5
14
  ### [3.0.22](https://github.com/kellyselden/move-semver-tags-action/compare/v3.0.21...v3.0.22) (2023-01-15)
6
15
 
7
16
  ### [3.0.21](https://github.com/kellyselden/move-semver-tags-action/compare/v3.0.20...v3.0.21) (2022-03-04)
package/README.md CHANGED
@@ -26,3 +26,10 @@ await require('move-semver-tags-action')({
26
26
  copyAnnotations: true // optional, default `false`
27
27
  });
28
28
  ```
29
+
30
+ ### As CLI
31
+
32
+ ```sh
33
+ move-semver-tags-action \
34
+ --copy-annotations=true \ # optional, default `false`
35
+ ```
package/bin/index.js ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const index = require('../src');
5
+ const defaults = require('../src/defaults');
6
+
7
+ const { argv } = require('yargs')
8
+ .options({
9
+ 'copy-annotations': {
10
+ description: 'Copy the annotation from the latest tag',
11
+ type: 'boolean',
12
+ default: defaults.copyAnnotations
13
+ }
14
+ });
15
+
16
+ index(argv);
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "move-semver-tags-action",
3
- "version": "3.0.22",
3
+ "version": "3.1.0",
4
4
  "description": "Move your SemVer major and minor tags automatically",
5
5
  "main": "src/index.js",
6
6
  "files": [
7
+ "bin",
7
8
  "src"
8
9
  ],
10
+ "bin": {
11
+ "move-semver-tags-action": "bin/index.js"
12
+ },
9
13
  "scripts": {
10
14
  "lint:git": "commitlint",
11
15
  "lint": "eslint . --ext js,json",
@@ -40,6 +44,7 @@
40
44
  "@actions/core": "^1.2.6",
41
45
  "execa": "^5.0.0",
42
46
  "semver": "^7.3.2",
47
+ "yargs": "^17.6.2",
43
48
  "yn": "^5.0.0"
44
49
  },
45
50
  "devDependencies": {