A template for creating new TypeScript GitHub Actions
- Create a new repository by clicking on the 🟩
Use this templatebutton at the top right (at the main page of this repository)
- run
npm install - edit
action.ymlto adjust action metadata - edit
README.mdto describe the action - edit
main.tsto 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.
v1to 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.