1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

update settings

This commit is contained in:
shimataro 2021-02-08 21:54:39 +09:00
parent 237ea58f21
commit 8574e6f286
No known key found for this signature in database
GPG key ID: BE92C05736911A9D
9 changed files with 488 additions and 596 deletions

124
.gitignore vendored
View file

@ -13,125 +13,5 @@ Thumbs.db
*.orig
*.rej
# TypeScript intermediate
lib/
### Node
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
# dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
n
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.pnp.*
# Node.js modules
/node_modules/

View file

@ -23,4 +23,4 @@ inputs:
default: ""
runs:
using: "node12"
main: "dist/index.js"
main: "lib/index.js"

View file

@ -3,7 +3,7 @@ module.exports =
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ 571:
/***/ 351:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
@ -16,7 +16,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const os = __importStar(__nccwpck_require__(87));
const utils_1 = __nccwpck_require__(129);
const utils_1 = __nccwpck_require__(278);
/**
* Commands
*
@ -88,7 +88,7 @@ function escapeProperty(s) {
/***/ }),
/***/ 496:
/***/ 186:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
@ -109,9 +109,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const command_1 = __nccwpck_require__(571);
const file_command_1 = __nccwpck_require__(124);
const utils_1 = __nccwpck_require__(129);
const command_1 = __nccwpck_require__(351);
const file_command_1 = __nccwpck_require__(717);
const utils_1 = __nccwpck_require__(278);
const os = __importStar(__nccwpck_require__(87));
const path = __importStar(__nccwpck_require__(622));
/**
@ -332,7 +332,7 @@ exports.getState = getState;
/***/ }),
/***/ 124:
/***/ 717:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
@ -349,7 +349,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
/* eslint-disable @typescript-eslint/no-explicit-any */
const fs = __importStar(__nccwpck_require__(747));
const os = __importStar(__nccwpck_require__(87));
const utils_1 = __nccwpck_require__(129);
const utils_1 = __nccwpck_require__(278);
function issueCommand(command, message) {
const filePath = process.env[`GITHUB_${command}`];
if (!filePath) {
@ -367,7 +367,7 @@ exports.issueCommand = issueCommand;
/***/ }),
/***/ 129:
/***/ 278:
/***/ ((__unused_webpack_module, exports) => {
@ -392,7 +392,7 @@ exports.toCommandValue = toCommandValue;
/***/ }),
/***/ 398:
/***/ 399:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
@ -421,7 +421,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const fs_1 = __importDefault(__nccwpck_require__(747));
const path_1 = __importDefault(__nccwpck_require__(622));
const core = __importStar(__nccwpck_require__(496));
const core = __importStar(__nccwpck_require__(186));
/**
* main function
*/
@ -582,6 +582,6 @@ module.exports = require("path");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(398);
/******/ return __nccwpck_require__(399);
/******/ })()
;

901
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -3,14 +3,13 @@
"version": "2.1.0",
"private": true,
"description": "Install SSH key in .ssh",
"main": "dist/index.js",
"main": "lib/index.js",
"engines": {
"node": ">=8.0.0",
"npm": ">=5.7.0"
},
"scripts": {
"build": "tsc",
"release": "ncc build src/main.ts",
"build": "ncc build src/main.ts -o lib",
"check-updates": "ncu",
"lint": "run-p lint:*",
"lint:ts": "eslint ./src --ext .ts",
@ -31,13 +30,12 @@
],
"author": "shimataro",
"license": "MIT",
"dependencies": {
"@actions/core": "1.2.6"
},
"devDependencies": {
"@actions/core": "1.2.6",
"@types/node": "14.0.27",
"@typescript-eslint/eslint-plugin": "3.9.0",
"@typescript-eslint/parser": "3.9.0",
"@vercel/ncc": "0.27.0",
"eslint": "7.7.0",
"markdownlint-cli": "0.23.2",
"npm-check-updates": "7.1.1",

View file

@ -3,8 +3,7 @@
# - git; I believe you have already installed.
# - sed; GNU sed is preferred. POSIX sed may not work.
# - perl; Already installed on most of unix system.
set -e
set -eu
BASE_BRANCH="develop"

View file

@ -2,8 +2,7 @@
# requires following packages:
# - git; I believe it's already installed.
# - sed; GNU sed is preferred. POSIX sed may not work.
set -e
set -eu
COLOR_ERROR="\e[1;41m"
COLOR_SECTION="\e[1;34m"
@ -105,8 +104,7 @@ function commit_changes() {
rm -rf node_modules
npm ci --only=production
npm run release
git add CHANGELOG.md package.json package-lock.json dist
git add CHANGELOG.md package.json package-lock.json lib
git commit -m "version ${VERSION}"
}

View file

@ -1,6 +1,5 @@
#!/bin/bash
set -e
set -eu
npm ci
npm run build
@ -8,5 +7,4 @@ npm run verify
rm -rf node_modules
npm ci --only=production
npm run release
git add dist
git add lib

View file

@ -1,7 +1,6 @@
#!/bin/bash
# update dependencies
set -e
set -eu
DATE=$(date +"%Y%m%d")
BRANCH=feature/update-dependencies-${DATE}
@ -25,10 +24,7 @@ npm run build
npm run verify
# commit
rm -rf node_modules
npm ci --only=production
npm run release
git add package.json package-lock.json dist
git add package.json package-lock.json lib
git commit -m "update dependencies"
# finished!