-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e075a0
commit 265e695
Showing
20 changed files
with
8,272 additions
and
5,017 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
name: Push pre-built JavaScript / TypeScript / Docker container GitHub Action | ||
description: Speed up CI execution time by pre-building. | ||
|
||
branding: | ||
icon: git-branch | ||
color: white | ||
|
||
inputs: | ||
committer-name: | ||
description: The name to set as git `user.name`. | ||
|
@@ -16,57 +14,48 @@ inputs: | |
default: [email protected] | ||
commit-message: | ||
description: > | ||
The commit message for the compiled. | ||
Leave blank to avoid committing and pushing. | ||
The commit message for the compiled. Leave blank to avoid committing and | ||
pushing. | ||
required: true | ||
default: '[auto]' | ||
|
||
exclude-from-cleanup: | ||
description: Files/dirs to leave for commit. | ||
required: true | ||
default: action.yml action.yaml dist .git | ||
|
||
push-branch: | ||
description: The name of branch to push compiled file. | ||
required: false | ||
release-tags: | ||
description: The names to tag the compiled file commit. | ||
required: false | ||
force-push: | ||
description: > | ||
Whether to force push to branch or tags. | ||
Either 'true' or 'false'. | ||
description: | | ||
Whether to force push to branch or tags. Either 'true' or 'false'. | ||
required: true | ||
default: 'true' | ||
|
||
docker-registry: | ||
description: The server URL of the Docker registry. | ||
required: false | ||
# default: docker.pkg.github.io | ||
docker-repotag: | ||
description: The Docker registry's repository of push action image. | ||
required: false | ||
# default: docker.pkg.github.com/${{ github.repository }}/github-action-image:${{ github.sha }} | ||
docker-user: | ||
description: The username to login to the Docker registry. | ||
required: false | ||
# default: x-access-token # https://github.com/actions/checkout/blob/01aecccf739ca6ff86c0539fbc67a7a5007bbc81/src/git-auth-helper.ts#L57 | ||
docker-token: | ||
description: The token to login to the Docker registry. | ||
required: false | ||
# default: ${{ github.token }} | ||
docker-build-command: | ||
description: The command and arguments to build Docker image. | ||
required: false | ||
default: docker build -t {repotag} . | ||
|
||
default: 'docker build -t {repotag} .' | ||
js-build-command: | ||
description: > | ||
The command and arguments to build JavaScript or TypeScript files. | ||
The artifacts must be in the dist/ directory and entrypoint must be dist/index.js. | ||
The command and arguments to build JavaScript or TypeScript files. The | ||
artifacts must be in the dist/ directory and entrypoint must be | ||
dist/index.js. | ||
required: false | ||
default: ncc build --v8-cache {main} | ||
default: 'ncc build --v8-cache {main}' | ||
runs: | ||
using: node12 | ||
# to compile own | ||
main: dist/index.js |
Oops, something went wrong.