Skip to content

Commit 117bf08

Browse files
Merge pull request #105 from technote-space/release/next-v1.8.7
release: v1.8.8
2 parents 21c2eaf + 5b4bb03 commit 117bf08

File tree

7 files changed

+1134
-1088
lines changed

7 files changed

+1134
-1088
lines changed

__tests__/config.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ describe('getActionDefaultInputs', () => {
4848
'CREATE_MAJOR_VERSION_TAG': 'true',
4949
'CREATE_MINOR_VERSION_TAG': 'true',
5050
'CREATE_PATCH_VERSION_TAG': 'true',
51+
'DELETE_NODE_MODULES': 'false',
5152
'FETCH_DEPTH': '3',
5253
'GITHUB_TOKEN': '${{ github.token }}',
5354
'ORIGINAL_TAG_PREFIX': '',
@@ -74,6 +75,7 @@ describe('getConfig', () => {
7475
'CREATE_MAJOR_VERSION_TAG': 'true',
7576
'CREATE_MINOR_VERSION_TAG': 'true',
7677
'CREATE_PATCH_VERSION_TAG': 'true',
78+
'DELETE_NODE_MODULES': 'false',
7779
'FETCH_DEPTH': '5',
7880
'GITHUB_TOKEN': '${{ github.token }}',
7981
'ORIGINAL_TAG_PREFIX': '',
@@ -102,6 +104,7 @@ describe('getConfig', () => {
102104
'CREATE_MAJOR_VERSION_TAG': 'true',
103105
'CREATE_MINOR_VERSION_TAG': 'true',
104106
'CREATE_PATCH_VERSION_TAG': 'true',
107+
'DELETE_NODE_MODULES': 'false',
105108
'FETCH_DEPTH': '3',
106109
'GITHUB_TOKEN': '${{ github.token }}',
107110
'ORIGINAL_TAG_PREFIX': '',
@@ -129,6 +132,7 @@ describe('getConfig', () => {
129132
'CREATE_MAJOR_VERSION_TAG': 'true',
130133
'CREATE_MINOR_VERSION_TAG': 'true',
131134
'CREATE_PATCH_VERSION_TAG': 'true',
135+
'DELETE_NODE_MODULES': 'false',
132136
'FETCH_DEPTH': '3',
133137
'GITHUB_TOKEN': '${{ github.token }}',
134138
'ORIGINAL_TAG_PREFIX': '',
@@ -156,6 +160,7 @@ describe('getConfig', () => {
156160
'CREATE_MAJOR_VERSION_TAG': 'true',
157161
'CREATE_MINOR_VERSION_TAG': 'true',
158162
'CREATE_PATCH_VERSION_TAG': 'true',
163+
'DELETE_NODE_MODULES': 'false',
159164
'FETCH_DEPTH': '3',
160165
'GITHUB_TOKEN': '${{ github.token }}',
161166
'ORIGINAL_TAG_PREFIX': '',
@@ -183,6 +188,7 @@ describe('getConfig', () => {
183188
'CREATE_MAJOR_VERSION_TAG': 'true',
184189
'CREATE_MINOR_VERSION_TAG': 'true',
185190
'CREATE_PATCH_VERSION_TAG': 'true',
191+
'DELETE_NODE_MODULES': 'false',
186192
'FETCH_DEPTH': '3',
187193
'GITHUB_TOKEN': '${{ github.token }}',
188194
'ORIGINAL_TAG_PREFIX': '',

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@technote-space/release-github-actions-cli",
3-
"version": "1.8.7",
3+
"version": "1.8.8",
44
"description": "Release GitHub Actions Cli",
55
"keywords": [
66
"github",
@@ -31,40 +31,40 @@
3131
"scripts": {
3232
"build": "yarn install && tsc && yarn install --production",
3333
"cover": "jest --coverage",
34+
"postinstall": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/husky ] || husky install",
3435
"lint": "eslint 'src/**/*.ts' '__tests__/**/*.ts' --cache",
3536
"lint:fix": "eslint --fix 'src/**/*.ts' '__tests__/**/*.ts'",
37+
"prepublishOnly": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/pinst ] || pinst --disable",
38+
"postpublish": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/pinst ] || pinst --enable",
3639
"release": "./bin/release-ga",
3740
"test": "yarn lint && yarn cover",
38-
"update": "npm_config_yes=true npx npm-check-updates -u --timeout 100000 && yarn install && yarn upgrade && yarn audit",
39-
"postinstall": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/husky ] || husky install",
40-
"prepublishOnly": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/pinst ] || pinst --disable",
41-
"postpublish": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/pinst ] || pinst --enable"
41+
"update": "npm_config_yes=true npx npm-check-updates -u --timeout 100000 && yarn install && yarn upgrade && yarn audit"
4242
},
4343
"dependencies": {
44-
"@technote-space/github-action-helper": "^5.2.20",
45-
"@technote-space/github-action-log-helper": "^0.1.40",
46-
"@technote-space/release-github-actions": "^7.0.7",
47-
"commander": "^8.1.0",
44+
"@technote-space/github-action-helper": "^5.2.23",
45+
"@technote-space/github-action-log-helper": "^0.1.41",
46+
"@technote-space/release-github-actions": "^7.1.0",
47+
"commander": "^8.3.0",
4848
"cosmiconfig": "^7.0.1",
4949
"dotenv": "^10.0.0",
5050
"js-yaml": "^4.1.0"
5151
},
5252
"devDependencies": {
53-
"@commitlint/cli": "^13.1.0",
54-
"@commitlint/config-conventional": "^13.1.0",
55-
"@technote-space/github-action-test-helper": "^0.7.27",
56-
"@types/jest": "^27.0.1",
57-
"@types/node": "^16.7.10",
58-
"@typescript-eslint/eslint-plugin": "^4.30.0",
59-
"@typescript-eslint/parser": "^4.30.0",
60-
"eslint": "^7.32.0",
61-
"husky": "^7.0.2",
62-
"jest": "^27.1.0",
63-
"jest-circus": "^27.1.0",
64-
"lint-staged": "^11.1.2",
53+
"@commitlint/cli": "^14.1.0",
54+
"@commitlint/config-conventional": "^14.1.0",
55+
"@technote-space/github-action-test-helper": "^0.7.28",
56+
"@types/jest": "^27.0.2",
57+
"@types/node": "^16.11.7",
58+
"@typescript-eslint/eslint-plugin": "^5.3.1",
59+
"@typescript-eslint/parser": "^5.3.1",
60+
"eslint": "^8.2.0",
61+
"husky": "^7.0.4",
62+
"jest": "^27.3.1",
63+
"jest-circus": "^27.3.1",
64+
"lint-staged": "^11.2.6",
6565
"pinst": "^2.1.6",
66-
"ts-jest": "^27.0.5",
67-
"typescript": "^4.4.2"
66+
"ts-jest": "^27.0.7",
67+
"typescript": "^4.4.4"
6868
},
6969
"publishConfig": {
7070
"access": "public"

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import type {Config} from './types';
12
import {cosmiconfigSync} from 'cosmiconfig';
23
import {existsSync, readFileSync} from 'fs';
34
import {resolve} from 'path';
45
import {load} from 'js-yaml';
56
import {getRepository} from './misc';
6-
import {Config} from './types';
77

88
export const normalizeConfigKey = (key: string): string => key.replace(/[-\s]+/g, '_').toUpperCase();
99

src/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import type {Config} from './types';
12
import dotenv from 'dotenv';
23
import {existsSync, readFileSync} from 'fs';
34
import {resolve} from 'path';
4-
import {Config} from './types';
55

66
export const loadTokenFromEnv = (dir: string): string | undefined => {
77
if (!existsSync(resolve(dir, '.env'))) {

src/misc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import type {Context} from '@actions/github/lib/context';
2+
import type {Config, ContextArgs} from './types';
13
import {readFileSync} from 'fs';
24
import {resolve} from 'path';
3-
import {Context} from '@actions/github/lib/context';
45
import {GitHelper} from '@technote-space/github-action-helper';
56
import {Logger} from '@technote-space/github-action-log-helper';
6-
import {Config, ContextArgs} from './types';
77

88
export const getRepository = (dir: string): { owner: string; repo: string } | never => {
99
const json = JSON.parse(readFileSync(resolve(dir, 'package.json'), {encoding: 'utf8'}));

src/wrapper.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import type {Context} from '@actions/github/lib/context';
2+
import type {GitHelper} from '@technote-space/github-action-helper';
3+
import type {ContextArgs} from './types';
14
import {mkdirSync} from 'fs';
2-
import {Context} from '@actions/github/lib/context';
3-
import {GitHelper, Command} from '@technote-space/github-action-helper';
5+
import {Command} from '@technote-space/github-action-helper';
46
import {Logger} from '@technote-space/github-action-log-helper';
57
import * as command from '@technote-space/release-github-actions/lib/utils/command';
68
import * as misc from '@technote-space/release-github-actions/lib/utils/misc';
79
import {getContext} from './misc';
8-
import {ContextArgs} from './types';
910

1011
export const isValidContext = (args: ContextArgs): boolean => misc.isValidContext(getContext(args));
1112

0 commit comments

Comments
 (0)