move-semver-tags-action 6.0.2 → 6.0.4
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/package.json +2 -2
- package/src/git.js +2 -2
- package/src/index.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "move-semver-tags-action",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"description": "Move your SemVer major and minor tags automatically",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@actions/core": "^1.2.6",
|
|
45
|
-
"execa": "^
|
|
45
|
+
"execa": "^8.0.0",
|
|
46
46
|
"semver": "^7.3.2",
|
|
47
47
|
"yargs": "^17.6.2",
|
|
48
48
|
"yn": "^5.0.0"
|
package/src/git.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const execa = require('execa');
|
|
4
|
-
|
|
5
3
|
// git for windows doesn't even use windows newlines
|
|
6
4
|
// const { EOL } = require('os');
|
|
7
5
|
const EOL = /\r?\n/;
|
|
8
6
|
|
|
9
7
|
async function getTags(tmpPath) {
|
|
8
|
+
let { execa } = await import('execa');
|
|
9
|
+
|
|
10
10
|
let { stdout } = await execa('git', [
|
|
11
11
|
'for-each-ref',
|
|
12
12
|
'--sort',
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const execa = require('execa');
|
|
4
3
|
const semver = require('semver');
|
|
5
4
|
const {
|
|
6
5
|
getTags
|
|
@@ -11,6 +10,8 @@ async function moveSemverTags({
|
|
|
11
10
|
cwd: tmpPath = process.cwd(),
|
|
12
11
|
copyAnnotations = defaults.copyAnnotations
|
|
13
12
|
}) {
|
|
13
|
+
let { execa } = await import('execa');
|
|
14
|
+
|
|
14
15
|
let tags = await getTags(tmpPath);
|
|
15
16
|
|
|
16
17
|
let tagsObj = {};
|