A template for creating new TypeScript GitHub Actions
- Create a new repository by clicking on the 🟩
Use this template
button at the top right (at the main page of this repository)
- run
npm install
- edit
action.yml
to adjust action metadata - edit
README.md
to describe the action - edit
main.ts
to implement the action - optional - try your action localy with
- adjust
local-run-action.ts
- run
npm run ts-node -- local-run-action.ts
- adjust
- commit and push your changes
- the Build workflow will build your changes and release them to corresponding branch automatically.
- Then you can use your action like this e.g.
- uses: <OWNER>/<REPO>@main
- Trigger the Release workflow
- The workflow will create a new release with the given version and also move the related major version tag e.g.
v1
to point to this new release
- The workflow will create a new release with the given version and also move the related major version tag e.g.