node-package-release-action 2.3.12 → 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.
Binary file
package/.yarnrc.yml ADDED
@@ -0,0 +1 @@
1
+ nodeLinker: node-modules
package/README.md CHANGED
@@ -42,8 +42,19 @@ jobs:
42
42
  then
43
43
  echo 'Release is skipped.'
44
44
  else
45
- echo "Release $TAG successfully."
45
+ echo "Released $TAG successfully."
46
46
  fi
47
+
48
+ - uses: actions/setup-node@v6
49
+ with:
50
+ node-version: '24'
51
+ check-latest: true
52
+ registry-url: https://registry.npmjs.org/
53
+
54
+ - name: Publish
55
+ if: ${{ steps.release.outputs.skipped != 'true' }}
56
+ run: |
57
+ npm publish
47
58
  ```
48
59
 
49
60
  ## Options
@@ -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>;
@@ -1,6 +1,6 @@
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';
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
  };
@@ -1,4 +1,4 @@
1
- import { GitHub, getOctokitOptions } from '@actions/github/lib/utils';
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 { type ReleaseType } from 'semver';
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,39 +1,49 @@
1
1
  {
2
2
  "name": "node-package-release-action",
3
- "version": "2.3.12",
4
- "description": "A template to create custom GitHub Action with TypeScript/JavaScript.",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.js",
7
- "type": "module",
8
- "scripts": {
9
- "build": "rm -rf dist && yarn tsc",
10
- "bundle": "rm -rf bundle && yarn ncc build src/index.ts --source-map --license licenses.txt --out bundle",
11
- "test": "echo \"Error: no test specified\" && exit 1",
12
- "lint": "eslint -c eslint.config.js",
13
- "prepublishOnly": "pinst --disable && yarn build",
14
- "postpublish": "pinst --enable",
15
- "preversion": "yarn && yarn build && yarn bundle",
16
- "prepare": "is-ci || husky"
17
- },
3
+ "version": "2.3.14",
4
+ "description": "This GitHub Action automates Node package version bumps and GitHub releases.",
5
+ "license": "MIT",
18
6
  "repository": {
19
7
  "type": "git",
20
8
  "url": "git+https://github.com/CatChen/node-package-release-action.git"
21
9
  },
22
10
  "author": "Cat Chen",
23
- "license": "MIT",
11
+ "homepage": "https://github.com/CatChen/node-package-release-action#readme",
24
12
  "bugs": {
25
13
  "url": "https://github.com/CatChen/node-package-release-action/issues"
26
14
  },
27
- "homepage": "https://github.com/CatChen/node-package-release-action#readme",
28
- "funding": "https://github.com/CatChen/node-package-release-action?sponsor=1",
15
+ "main": "dist/index.js",
16
+ "type": "module",
17
+ "scripts": {
18
+ "build": "rm -rf dist && tsc",
19
+ "bundle": "rm -rf bundle && ncc build src/index.ts --source-map --license licenses.txt --out bundle",
20
+ "format": "prettier --write .",
21
+ "lint": "eslint -c eslint.config.js",
22
+ "postpublish": "pinst --enable",
23
+ "prepare": "is-ci || husky",
24
+ "prepublishOnly": "pinst --disable && yarn build",
25
+ "preversion": "yarn && yarn build && yarn bundle",
26
+ "test": "echo \"Error: no test specified\" && exit 1"
27
+ },
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"
38
+ },
29
39
  "devDependencies": {
30
40
  "@eslint/eslintrc": "^3.0.2",
31
41
  "@eslint/js": "^10.0.1",
42
+ "@ianvs/prettier-plugin-sort-imports": "^4.7.1",
32
43
  "@octokit/graphql-schema": "^15.1.2",
33
44
  "@octokit/webhooks-types": "^7.6.1",
34
- "@serverless-guru/prettier-plugin-import-order": "^0.4.1",
35
45
  "@types/glob": "^9.0.0",
36
- "@types/node": "^25.0.2",
46
+ "@types/node": "^25.3.5",
37
47
  "@types/semver": "^7.3.13",
38
48
  "@typescript-eslint/eslint-plugin": "^8.0.0",
39
49
  "@typescript-eslint/parser": "^8.0.0",
@@ -43,30 +53,24 @@
43
53
  "eslint-plugin-prettier": "5",
44
54
  "husky": "^9.0.11",
45
55
  "is-ci": "^4.1.0",
46
- "lint-staged": "^16.0.0",
56
+ "lint-staged": "^16.3.2",
47
57
  "pinst": "^3.0.0",
48
58
  "prettier": "^3.0.2",
59
+ "prettier-plugin-package": "^2.0.0",
49
60
  "typescript": "^5.6.3",
50
61
  "typescript-eslint": "^8.0.0"
51
62
  },
52
- "dependencies": {
53
- "@actions/core": "^3.0.0",
54
- "@actions/exec": "^3.0.0",
55
- "@actions/github": "^9.0.0",
56
- "@octokit/core": "^7.0.0",
57
- "@octokit/plugin-retry": "^8.0.1",
58
- "@octokit/plugin-throttling": "^11.0.1",
59
- "config-git-with-token-action": "^2.0.0",
60
- "glob": "^13.0.0",
61
- "semver": "^7.3.8"
62
- },
63
63
  "resolutions": {
64
64
  "strip-ansi": "6.0.1"
65
65
  },
66
+ "types": "dist/index.d.js",
67
+ "funding": "https://github.com/CatChen/node-package-release-action?sponsor=1",
66
68
  "lint-staged": {
67
- "*.(ts,js)": "yarn lint --fix",
68
- "*.json": "yarn prettier -w",
69
- "*.(yml,yaml)": "yarn prettier -w",
70
- "*.(md,markdown)": "yarn prettier -w"
71
- }
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"
72
76
  }