mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
Use ncc to pack dependencies
This commit is contained in:
parent
1471fe7d17
commit
0822ef6c96
4 changed files with 8 additions and 4 deletions
|
@ -3,13 +3,14 @@
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Install SSH key in .ssh",
|
"description": "Install SSH key in .ssh",
|
||||||
"main": "lib/main.js",
|
"main": "dist/index.js",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8.0.0",
|
"node": ">=8.0.0",
|
||||||
"npm": ">=5.7.0"
|
"npm": ">=5.7.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
|
"release": "ncc build src/main.ts",
|
||||||
"check-updates": "ncu",
|
"check-updates": "ncu",
|
||||||
"lint": "run-p lint:*",
|
"lint": "run-p lint:*",
|
||||||
"lint:ts": "eslint ./src --ext .ts",
|
"lint:ts": "eslint ./src --ext .ts",
|
||||||
|
|
|
@ -105,7 +105,8 @@ function commit_changes() {
|
||||||
|
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
npm ci --only=production
|
npm ci --only=production
|
||||||
git add CHANGELOG.md package.json package-lock.json lib
|
npm run release
|
||||||
|
git add CHANGELOG.md package.json package-lock.json dist
|
||||||
git commit -m "version ${VERSION}"
|
git commit -m "version ${VERSION}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,4 +8,5 @@ npm run verify
|
||||||
|
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
npm ci --only=production
|
npm ci --only=production
|
||||||
git add lib
|
npm run release
|
||||||
|
git add dist
|
||||||
|
|
|
@ -27,7 +27,8 @@ npm run verify
|
||||||
# commit
|
# commit
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
npm ci --only=production
|
npm ci --only=production
|
||||||
git add package.json package-lock.json
|
npm run release
|
||||||
|
git add package.json package-lock.json dist
|
||||||
git commit -m "update dependencies"
|
git commit -m "update dependencies"
|
||||||
|
|
||||||
# finished!
|
# finished!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue