6
6
7
7
Use this template to bootstrap the creation of a TypeScript action.:rocket :
8
8
9
- This template includes compilation support, tests, a validation workflow, publishing, and versioning guidance.
9
+ This template includes compilation support, tests, a validation workflow, publishing, and versioning guidance.
10
10
11
11
If you are new, there's also a simpler introduction. See the [ Hello World JavaScript Action] ( https://github.com/actions/hello-world-javascript-action )
12
12
@@ -16,7 +16,7 @@ Click the `Use this Template` and provide the new repo details for your action
16
16
17
17
## Code in Main
18
18
19
- Install the dependencies
19
+ Install the dependencies
20
20
``` bash
21
21
$ npm install
22
22
```
@@ -26,7 +26,7 @@ Build the typescript and package it for distribution
26
26
$ npm run build && npm run package
27
27
```
28
28
29
- Run the tests :heavy_check_mark :
29
+ Run the tests :heavy_check_mark :
30
30
``` bash
31
31
$ npm test
32
32
@@ -55,9 +55,9 @@ import * as core from '@actions/core';
55
55
...
56
56
57
57
async function run () {
58
- try {
58
+ try {
59
59
...
60
- }
60
+ }
61
61
catch (error) {
62
62
core .setFailed (error .message );
63
63
}
@@ -70,7 +70,7 @@ See the [toolkit documentation](https://github.com/actions/toolkit/blob/master/R
70
70
71
71
## Publish to a distribution branch
72
72
73
- Actions are run from GitHub repos so we will checkin the packed dist folder.
73
+ Actions are run from GitHub repos so we will checkin the packed dist folder.
74
74
75
75
Then run [ ncc] ( https://github.com/zeit/ncc ) and push the results:
76
76
``` bash
@@ -82,7 +82,7 @@ $ git push origin releases/v1
82
82
83
83
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.
84
84
85
- Your action is now published! :rocket :
85
+ Your action is now published! :rocket :
86
86
87
87
See the [ versioning documentation] ( https://github.com/actions/toolkit/blob/master/docs/action-versioning.md )
88
88
0 commit comments