44
55# Create a JavaScript Action using TypeScript
66
7- Use this template to bootstrap the creation of a JavaScript action.:rocket :
7+ Use this template to bootstrap the creation of a TypeScript action.:rocket :
88
9- This template includes compilication support, tests, a validation workflow, publishing, and versioning guidance.
9+ This template includes compilation support, tests, a validation workflow, publishing, and versioning guidance.
1010
1111If you are new, there's also a simpler introduction. See the [ Hello World JavaScript Action] ( https://github.com/actions/hello-world-javascript-action )
1212
1313## Create an action from this template
1414
1515Click the ` Use this Template ` and provide the new repo details for your action
1616
17- ## Code in Master
17+ ## Code in Main
18+
19+ > First, you'll need to have a reasonably modern version of ` node ` handy. This won't work with versions older than 9, for instance.
1820
1921Install the dependencies
2022``` bash
@@ -40,7 +42,7 @@ $ yarn test
4042
4143## Change action.yml
4244
43- The action.yml contains defines the inputs and output for your action.
45+ The action.yml defines the inputs and output for your action.
4446
4547Update the action.yml with your name, description, inputs and outputs for your action.
4648
@@ -80,21 +82,23 @@ $ git commit -a -m "prod dependencies"
8082$ git push origin releases/v1
8183```
8284
85+ Note: We recommend using the ` --license ` option for ncc, which will create a license file for all of the production node modules used in your project.
86+
8387Your action is now published! :rocket :
8488
8589See the [ versioning documentation] ( https://github.com/actions/toolkit/blob/master/docs/action-versioning.md )
8690
8791## Validate
8892
89- You can now validate the action by referencing ` ./ ` in a workflow in your repo (see [ test.yml] ( .github/workflows/test.yml )] )
93+ You can now validate the action by referencing ` ./ ` in a workflow in your repo (see [ test.yml] ( .github/workflows/test.yml ) )
9094
9195``` yaml
9296uses : ./
9397with :
9498 milliseconds : 1000
9599` ` `
96100
97- See the [actions tab](https://github.com/actions/javascript -action/actions) for runs of this action! :rocket:
101+ See the [actions tab](https://github.com/actions/typescript -action/actions) for runs of this action! :rocket:
98102
99103## Usage:
100104
0 commit comments