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
@@ -18,7 +18,7 @@ Click the `Use this Template` and provide the new repo details for your action
18
18
19
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.
20
20
21
- Install the dependencies
21
+ Install the dependencies
22
22
``` bash
23
23
$ npm install
24
24
```
@@ -28,7 +28,7 @@ Build the typescript and package it for distribution
28
28
$ npm run build && npm run package
29
29
```
30
30
31
- Run the tests :heavy_check_mark :
31
+ Run the tests :heavy_check_mark :
32
32
``` bash
33
33
$ npm test
34
34
@@ -57,9 +57,9 @@ import * as core from '@actions/core';
57
57
...
58
58
59
59
async function run () {
60
- try {
60
+ try {
61
61
...
62
- }
62
+ }
63
63
catch (error) {
64
64
core .setFailed (error .message );
65
65
}
@@ -72,7 +72,7 @@ See the [toolkit documentation](https://github.com/actions/toolkit/blob/master/R
72
72
73
73
## Publish to a distribution branch
74
74
75
- Actions are run from GitHub repos so we will checkin the packed dist folder.
75
+ Actions are run from GitHub repos so we will checkin the packed dist folder.
76
76
77
77
Then run [ ncc] ( https://github.com/zeit/ncc ) and push the results:
78
78
``` bash
@@ -84,7 +84,7 @@ $ git push origin releases/v1
84
84
85
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
86
87
- Your action is now published! :rocket :
87
+ Your action is now published! :rocket :
88
88
89
89
See the [ versioning documentation] ( https://github.com/actions/toolkit/blob/master/docs/action-versioning.md )
90
90
0 commit comments