node-package-release-action 2.3.13 → 2.3.14
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/.yarn/install-state.gz +0 -0
- package/dist/findLastSameReleaseTypeVersion.d.ts +1 -1
- package/dist/getOctokit.d.ts +3 -3
- package/dist/getOctokit.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +36 -33
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ReleaseType } from 'semver';
|
|
1
|
+
import type { ReleaseType } from 'semver';
|
|
2
2
|
export declare function findLastSameReleaseTypeVersion(releaseVersion: string, releaseType: ReleaseType): Promise<string | null>;
|
package/dist/getOctokit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { Octokit } from '@octokit/core';
|
|
2
|
+
import type { PaginateInterface } from '@octokit/plugin-paginate-rest';
|
|
3
|
+
import type { Api } from '@octokit/plugin-rest-endpoint-methods';
|
|
4
4
|
export declare function getOctokit(githubToken: string): Octokit & Api & {
|
|
5
5
|
paginate: PaginateInterface;
|
|
6
6
|
};
|
package/dist/getOctokit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getOctokitOptions, GitHub } from '@actions/github/lib/utils';
|
|
2
2
|
import { retry } from '@octokit/plugin-retry';
|
|
3
3
|
import { throttling } from '@octokit/plugin-throttling';
|
|
4
4
|
export function getOctokit(githubToken) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Release } from '@octokit/webhooks-types';
|
|
2
|
-
import {
|
|
2
|
+
import type { ReleaseType } from 'semver';
|
|
3
3
|
export declare function nodePackageRelease({ githubToken, directory, releaseType, prerelease, updateShorthandRelease, skipIfNoDiff, diffTargets, dryRun, }: {
|
|
4
4
|
githubToken: string;
|
|
5
5
|
directory: string;
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import { endGroup, getBooleanInput, getInput, notice, setFailed, setOutput, star
|
|
|
2
2
|
import { context } from '@actions/github';
|
|
3
3
|
import { configGitWithToken } from 'config-git-with-token-action';
|
|
4
4
|
import { inc, rsort } from 'semver';
|
|
5
|
-
import { RELEASE_TYPES } from './ReleaseType.js';
|
|
6
5
|
import { checkDiff } from './checkDiff.js';
|
|
7
6
|
import { configGit } from './configGit.js';
|
|
8
7
|
import { createRelease } from './createRelease.js';
|
|
@@ -13,6 +12,7 @@ import { getLatestReleaseTag } from './getLatestReleaseTag.js';
|
|
|
13
12
|
import { getOctokit } from './getOctokit.js';
|
|
14
13
|
import { getPackageVersion } from './getPackageVersion.js';
|
|
15
14
|
import { pushBranch } from './pushBranch.js';
|
|
15
|
+
import { RELEASE_TYPES } from './ReleaseType.js';
|
|
16
16
|
import { setVersion } from './setVersion.js';
|
|
17
17
|
import { updateTags } from './updateTags.js';
|
|
18
18
|
const DEFAULT_VERSION = '0.1.0';
|
package/package.json
CHANGED
|
@@ -1,38 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-package-release-action",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.14",
|
|
4
4
|
"description": "This GitHub Action automates Node package version bumps and GitHub releases.",
|
|
5
|
-
"
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/CatChen/node-package-release-action.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Cat Chen",
|
|
11
|
+
"homepage": "https://github.com/CatChen/node-package-release-action#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/CatChen/node-package-release-action/issues"
|
|
14
|
+
},
|
|
6
15
|
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.js",
|
|
8
16
|
"type": "module",
|
|
9
17
|
"scripts": {
|
|
10
18
|
"build": "rm -rf dist && tsc",
|
|
11
19
|
"bundle": "rm -rf bundle && ncc build src/index.ts --source-map --license licenses.txt --out bundle",
|
|
12
|
-
"
|
|
20
|
+
"format": "prettier --write .",
|
|
13
21
|
"lint": "eslint -c eslint.config.js",
|
|
14
|
-
"prepublishOnly": "pinst --disable && yarn build",
|
|
15
22
|
"postpublish": "pinst --enable",
|
|
23
|
+
"prepare": "is-ci || husky",
|
|
24
|
+
"prepublishOnly": "pinst --disable && yarn build",
|
|
16
25
|
"preversion": "yarn && yarn build && yarn bundle",
|
|
17
|
-
"
|
|
18
|
-
},
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/CatChen/node-package-release-action.git"
|
|
26
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
22
27
|
},
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@actions/core": "^3.0.0",
|
|
30
|
+
"@actions/exec": "^3.0.0",
|
|
31
|
+
"@actions/github": "^9.0.0",
|
|
32
|
+
"@octokit/core": "^7.0.0",
|
|
33
|
+
"@octokit/plugin-retry": "^8.0.1",
|
|
34
|
+
"@octokit/plugin-throttling": "^11.0.1",
|
|
35
|
+
"config-git-with-token-action": "^2.0.15",
|
|
36
|
+
"glob": "^13.0.0",
|
|
37
|
+
"semver": "^7.3.8"
|
|
27
38
|
},
|
|
28
|
-
"homepage": "https://github.com/CatChen/node-package-release-action#readme",
|
|
29
|
-
"funding": "https://github.com/CatChen/node-package-release-action?sponsor=1",
|
|
30
39
|
"devDependencies": {
|
|
31
40
|
"@eslint/eslintrc": "^3.0.2",
|
|
32
41
|
"@eslint/js": "^10.0.1",
|
|
42
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
33
43
|
"@octokit/graphql-schema": "^15.1.2",
|
|
34
44
|
"@octokit/webhooks-types": "^7.6.1",
|
|
35
|
-
"@serverless-guru/prettier-plugin-import-order": "^0.4.1",
|
|
36
45
|
"@types/glob": "^9.0.0",
|
|
37
46
|
"@types/node": "^25.3.5",
|
|
38
47
|
"@types/semver": "^7.3.13",
|
|
@@ -47,27 +56,21 @@
|
|
|
47
56
|
"lint-staged": "^16.3.2",
|
|
48
57
|
"pinst": "^3.0.0",
|
|
49
58
|
"prettier": "^3.0.2",
|
|
59
|
+
"prettier-plugin-package": "^2.0.0",
|
|
50
60
|
"typescript": "^5.6.3",
|
|
51
61
|
"typescript-eslint": "^8.0.0"
|
|
52
62
|
},
|
|
53
|
-
"dependencies": {
|
|
54
|
-
"@actions/core": "^3.0.0",
|
|
55
|
-
"@actions/exec": "^3.0.0",
|
|
56
|
-
"@actions/github": "^9.0.0",
|
|
57
|
-
"@octokit/core": "^7.0.0",
|
|
58
|
-
"@octokit/plugin-retry": "^8.0.1",
|
|
59
|
-
"@octokit/plugin-throttling": "^11.0.1",
|
|
60
|
-
"config-git-with-token-action": "^2.0.0",
|
|
61
|
-
"glob": "^13.0.0",
|
|
62
|
-
"semver": "^7.3.8"
|
|
63
|
-
},
|
|
64
63
|
"resolutions": {
|
|
65
64
|
"strip-ansi": "6.0.1"
|
|
66
65
|
},
|
|
66
|
+
"types": "dist/index.d.js",
|
|
67
|
+
"funding": "https://github.com/CatChen/node-package-release-action?sponsor=1",
|
|
67
68
|
"lint-staged": {
|
|
68
|
-
"*.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
"*.{ts,js}": [
|
|
70
|
+
"yarn format",
|
|
71
|
+
"yarn lint --fix"
|
|
72
|
+
],
|
|
73
|
+
"*.{json,yml,yaml,md,markdown}": "yarn format"
|
|
74
|
+
},
|
|
75
|
+
"packageManager": "yarn@4.13.0"
|
|
73
76
|
}
|