Remove absolute paths

This commit is contained in:
CrazyMax 2020-04-08 00:21:58 +02:00
parent 5341655506
commit 99727c1fda
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
13 changed files with 26 additions and 81 deletions

View File

@ -12,9 +12,10 @@ Contributions to this project are [released](https://help.github.com/articles/gi
5. Make your change
6. Compile your Typescript code: `npm run build`
7. Format your code: `npm run format`
8. Prune dependencies: `npm prune --production`
9. Push to your fork and [submit a pull request](https://github.com/crazy-max/ghaction-github-pages/compare)
10. Pat your self on the back and wait for your pull request to be reviewed and merged.
8. Install build dependencies: `npm run build-dep`
9. Prune dependencies: `npm run prune`
10. Push to your fork and [submit a pull request](https://github.com/crazy-max/ghaction-github-pages/compare)
11. Pat your self on the back and wait for your pull request to be reviewed and merged.
Here are a few things you can do that will increase the likelihood of your pull request being accepted:

View File

@ -28,8 +28,8 @@ jobs:
-
name: Prune prod
run: |
rm -rf node_modules
npm install --production
npm run build-dep
npm run prune
-
name: Set up Git
env:

View File

@ -48,9 +48,8 @@ jobs:
-
name: NPM production deps
run: |
rm -rf node_modules
sed -i '/node_modules/d' .gitignore
npm install --production
npm run build-dep
npm run prune
-
name: Commit and push changes
run: |

View File

@ -25,8 +25,8 @@ jobs:
-
name: Prune prod
run: |
rm -rf node_modules
npm install --production
npm run build-dep
npm run prune
-
name: Check for uncommitted changes
run: |

View File

@ -1,10 +1,4 @@
{
"_args": [
[
"@actions/core@1.2.3",
"/home/runner/work/ghaction-github-pages/ghaction-github-pages"
]
],
"_from": "@actions/core@1.2.3",
"_id": "@actions/core@1.2.3",
"_inBundle": false,
@ -27,7 +21,6 @@
],
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.3.tgz",
"_spec": "1.2.3",
"_where": "/home/runner/work/ghaction-github-pages/ghaction-github-pages",
"bugs": {
"url": "https://github.com/actions/toolkit/issues"
},

View File

@ -1,10 +1,4 @@
{
"_args": [
[
"@actions/exec@1.0.3",
"/home/runner/work/ghaction-github-pages/ghaction-github-pages"
]
],
"_from": "@actions/exec@1.0.3",
"_id": "@actions/exec@1.0.3",
"_inBundle": false,
@ -27,7 +21,6 @@
],
"_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.3.tgz",
"_spec": "1.0.3",
"_where": "/home/runner/work/ghaction-github-pages/ghaction-github-pages",
"bugs": {
"url": "https://github.com/actions/toolkit/issues"
},

View File

@ -1,10 +1,4 @@
{
"_args": [
[
"@actions/io@1.0.2",
"/home/runner/work/ghaction-github-pages/ghaction-github-pages"
]
],
"_from": "@actions/io@1.0.2",
"_id": "@actions/io@1.0.2",
"_inBundle": false,
@ -28,7 +22,6 @@
],
"_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.2.tgz",
"_spec": "1.0.2",
"_where": "/home/runner/work/ghaction-github-pages/ghaction-github-pages",
"bugs": {
"url": "https://github.com/actions/toolkit/issues"
},

View File

@ -1,10 +1,4 @@
{
"_args": [
[
"at-least-node@1.0.0",
"/home/runner/work/ghaction-github-pages/ghaction-github-pages"
]
],
"_from": "at-least-node@1.0.0",
"_id": "at-least-node@1.0.0",
"_inBundle": false,
@ -26,7 +20,6 @@
],
"_resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",
"_spec": "1.0.0",
"_where": "/home/runner/work/ghaction-github-pages/ghaction-github-pages",
"author": {
"name": "Ryan Zimmerman",
"email": "opensrc@ryanzim.com"

7
node_modules/fs-extra/package.json generated vendored
View File

@ -1,10 +1,4 @@
{
"_args": [
[
"fs-extra@9.0.0",
"/home/runner/work/ghaction-github-pages/ghaction-github-pages"
]
],
"_from": "fs-extra@9.0.0",
"_id": "fs-extra@9.0.0",
"_inBundle": false,
@ -26,7 +20,6 @@
],
"_resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.0.tgz",
"_spec": "9.0.0",
"_where": "/home/runner/work/ghaction-github-pages/ghaction-github-pages",
"author": {
"name": "JP Richardson",
"email": "jprichardson@gmail.com"

View File

@ -1,10 +1,4 @@
{
"_args": [
[
"graceful-fs@4.2.3",
"/home/runner/work/ghaction-github-pages/ghaction-github-pages"
]
],
"_from": "graceful-fs@4.2.3",
"_id": "graceful-fs@4.2.3",
"_inBundle": false,
@ -27,7 +21,6 @@
],
"_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
"_spec": "4.2.3",
"_where": "/home/runner/work/ghaction-github-pages/ghaction-github-pages",
"bugs": {
"url": "https://github.com/isaacs/node-graceful-fs/issues"
},

7
node_modules/jsonfile/package.json generated vendored
View File

@ -1,10 +1,4 @@
{
"_args": [
[
"jsonfile@6.0.1",
"/home/runner/work/ghaction-github-pages/ghaction-github-pages"
]
],
"_from": "jsonfile@6.0.1",
"_id": "jsonfile@6.0.1",
"_inBundle": false,
@ -26,7 +20,6 @@
],
"_resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz",
"_spec": "6.0.1",
"_where": "/home/runner/work/ghaction-github-pages/ghaction-github-pages",
"author": {
"name": "JP Richardson",
"email": "jprichardson@gmail.com"

View File

@ -1,10 +1,4 @@
{
"_args": [
[
"universalify@1.0.0",
"/home/runner/work/ghaction-github-pages/ghaction-github-pages"
]
],
"_from": "universalify@1.0.0",
"_id": "universalify@1.0.0",
"_inBundle": false,
@ -27,7 +21,6 @@
],
"_resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz",
"_spec": "1.0.0",
"_where": "/home/runner/work/ghaction-github-pages/ghaction-github-pages",
"author": {
"name": "Ryan Zimmerman",
"email": "opensrc@ryanzim.com"

View File

@ -5,12 +5,6 @@
"directories": {
"lib": "lib"
},
"scripts": {
"build": "tsc",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"prune": "npm prune --production"
},
"repository": {
"type": "git",
"url": "git+https://github.com/crazy-max/ghaction-docker-buildx.git"
@ -35,5 +29,12 @@
"prettier": "^2.0.4",
"typescript": "^3.8.3",
"typescript-formatter": "^7.2.2"
},
"scripts": {
"build-dep": "npm install -g removeNPMAbsolutePaths",
"build": "tsc",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"prune": "npm prune --production && removeNPMAbsolutePaths \"./\" --force --fields _where _args"
}
}