Skip to content

Commit

Permalink
Fix build and remove sourcemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBoudreau committed Sep 29, 2021
1 parent f5ec1a1 commit bba8c3d
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 174 deletions.
39 changes: 31 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
name: 'Your name here'
description: 'Provide a description here'
author: 'Your name or organization here'
name: Build Task Definition from ECS Service
description: Build a task-definition from merging a given container-definitions JSON file into the task-definition of a running service on ECS.
inputs:
milliseconds: # change this
cluster:
description: Name of the cluster
required: true
description: 'input description here'
default: 'default value if applicable'
service:
description: Name of the service
required: true
container_definitions_path:
description: Path to your container definitions JSON file
required: true
secrets_path:
description: |
Path to a JSON file containing the list of secrets to append.
Use this if your secrets are in a separate file than your container-definitions.
This will replace all secrets fields from you container-definitions file.
required: false
image:
description: |
URI of the image to use.
Use this if you need to dynamically change the name of an image in your container-definitions file.
This will replace <IMAGE> strings from you container-definitions file.
required: false
outputs:
path:
description: Path to the generated task-definition file"
should_deploy:
description: True if the current task definition is different than the one currently used by the given ECS service
current_task_definition_path:
description: Path to a copy of the current stable task-definition running on the cluster
runs:
using: 'node12'
main: 'dist/index.js'
using: node12
main: dist/index.js
132 changes: 4 additions & 128 deletions dist/index.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/index.js.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/sourcemap-register.js

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"version": "0.0.0",
"private": true,
"description": "TypeScript template action",
"main": "dist/index.js",
"main": "lib/src/main.js",
"scripts": {
"build": "tsc",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"lint": "eslint src/**/*.ts helpers/**/*.ts",
"package": "ncc build --source-map --license licenses.txt",
"package": "ncc build --no-source-map-register --license licenses.txt",
"test": "jest --passWithNoTests",
"copyfiles": "copyfiles -f -e '**/*.js' -e '**/*.ts' -e '**/*.yml' src/* ./dist",
"all": "yarn build && yarn format && yarn lint && yarn package && yarn copyfiles && yarn test"
Expand Down
34 changes: 0 additions & 34 deletions src/action.yml

This file was deleted.

0 comments on commit bba8c3d

Please sign in to comment.