Skip to content

Commit 8e1c1bd

Browse files
committedDec 3, 2020
feat: 🎸 prune dev dependencies, recompile all github actions
1 parent 4a56b0a commit 8e1c1bd

File tree

8 files changed

+6
-123
lines changed

8 files changed

+6
-123
lines changed
 

‎.github/actions/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
All custom actions must be added to both the `package.json` and `lint-staged.config.js`.
44

5+
The `tsconfig.json` file in root applies to the custom actions.
6+
57
Each action must have an `index.ts` and a `main.ts`. The `main.ts` is meant to run locally, while the `index.ts` is meant to run with the GitHub Actions Toolkit on the cloud. Try to keep as much as possible in `main.ts`.
68

79
## Lint-staged

‎.github/actions/compile/dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/actions/matrix/dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lint-staged.config.js

-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ module.exports = {
77
'npx @vercel/ncc build -m -C .github/actions/compile/src/index.ts -o .github/actions/compile/dist',
88
'.github/actions/release-version/src/**/*.ts': () =>
99
'npx @vercel/ncc build -m -C .github/actions/release-version/src/index.ts -o .github/actions/release-version/dist',
10-
'.github/actions/decompress/src/**/*.ts': () =>
11-
'npx @vercel/ncc build -m -C .github/actions/decompress/src/index.ts -o .github/actions/decompress/dist',
1210
};

‎package-lock.json

-108
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2-9
Original file line numberDiff line numberDiff line change
@@ -25,46 +25,39 @@
2525
],
2626
"scripts": {
2727
"compile": "cross-env NODE_ENV=development LAMBDA=nodejs14.x TENSORFLOW=2.7.0 BINARY=nodejs14.x-tf2.7.0.br npx @vercel/ncc run .github/actions/compile/src/main.ts",
28-
"decompress": "cross-env NODE_ENV=development npx @vercel/ncc run .github/actions/decompress/src/main.ts",
2928
"matrix": "cross-env NODE_ENV=development npx @vercel/ncc run .github/actions/matrix/src/main.ts",
3029
"release-version": "cross-env NODE_ENV=development npx @vercel/ncc run .github/actions/release-version/src/main.ts",
3130
"test": "echo \"Error: no test specified\" && exit 1"
3231
},
32+
"dependencies": {},
3333
"devDependencies": {
3434
"@actions/core": "^1.2.6",
35-
"@actions/github": "^4.0.0",
3635
"@commitlint/cli": "^11.0.0",
3736
"@commitlint/config-conventional": "^11.0.0",
3837
"@types/deep-equal": "^1.0.1",
3938
"@types/fs-extra": "^9.0.4",
4039
"@types/prettier": "^2.1.5",
4140
"@types/pump": "^1.1.0",
42-
"@types/rimraf": "^3.0.0",
4341
"@types/semantic-release": "^17.2.0",
4442
"@types/tar": "^4.0.4",
45-
"@types/yauzl": "^2.9.1",
4643
"@vercel/ncc": "^0.25.1",
4744
"axios": "^0.21.0",
4845
"commitizen": "^4.2.2",
4946
"cross-env": "^7.0.3",
5047
"cspell": "^4.2.5",
5148
"cz-conventional-changelog": "^3.3.0",
5249
"deep-equal": "^2.0.4",
53-
"fast-glob": "^3.2.4",
5450
"fs-extra": "^9.0.1",
5551
"get-latest-version": "^2.0.0",
5652
"git-cz": "^4.7.5",
5753
"husky": "^4.3.0",
5854
"lint-staged": "^10.5.2",
59-
"node-glob": "^1.2.0",
6055
"prettier": "^2.2.1",
6156
"pump": "^3.0.0",
62-
"rimraf": "^3.0.2",
6357
"semantic-release": "^17.3.0",
6458
"sort-package-json": "^1.48.0",
6559
"tar": "^6.0.5",
66-
"typescript": "^4.1.2",
67-
"yauzl": "^2.10.0"
60+
"typescript": "^4.1.2"
6861
},
6962
"optionalDependencies": {
7063
"@tensorflow/tfjs": "^2.7.0",

‎release.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ module.exports = {
55
[
66
'@semantic-release/commit-analyzer',
77
{
8-
preset: 'angular',
98
releaseRules: [
109
// custom
1110
{ type: 'chore', release: 'patch' },

‎tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// For .github/actions/**
21
{
32
"compilerOptions": {
43
"forceConsistentCasingInFileNames": true,

0 commit comments

Comments
 (0)
Please sign in to comment.