move-semver-tags-action 3.0.21 → 3.0.22

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,8 @@
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.0.22](https://github.com/kellyselden/move-semver-tags-action/compare/v3.0.21...v3.0.22) (2023-01-15)
6
+
5
7
  ### [3.0.21](https://github.com/kellyselden/move-semver-tags-action/compare/v3.0.20...v3.0.21) (2022-03-04)
6
8
 
7
9
  ### [3.0.20](https://github.com/kellyselden/move-semver-tags-action/compare/v3.0.19...v3.0.20) (2022-03-04)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "move-semver-tags-action",
3
- "version": "3.0.21",
3
+ "version": "3.0.22",
4
4
  "description": "Move your SemVer major and minor tags automatically",
5
5
  "main": "src/index.js",
6
6
  "files": [
package/src/action.js CHANGED
@@ -8,10 +8,8 @@ const index = require('.');
8
8
  const { default: yn } = await import('yn');
9
9
 
10
10
  try {
11
- let copyAnnotations = yn(core.getInput('copy-annotations'));
12
-
13
11
  await index({
14
- copyAnnotations
12
+ copyAnnotations: yn(core.getInput('copy-annotations'))
15
13
  });
16
14
  } catch (err) {
17
15
  core.setFailed(err.message);
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ copyAnnotations: false
5
+ };
package/src/index.js CHANGED
@@ -5,10 +5,11 @@ const semver = require('semver');
5
5
  const {
6
6
  getTags
7
7
  } = require('./git');
8
+ const defaults = require('../src/defaults');
8
9
 
9
10
  async function moveSemverTags({
10
11
  cwd: tmpPath = process.cwd(),
11
- copyAnnotations
12
+ copyAnnotations = defaults.copyAnnotations
12
13
  }) {
13
14
  let tags = await getTags(tmpPath);
14
15