This is a template of TypeScript action. Inspired from https://github.com/actions/typescript-action.
- Ready to develop with the minimum configs
- Prettier
- ESLint
- tsconfig
- Jest
- Automated continuous release
- Keep consistency of generated files
- Shipped with Renovate config
Click Use this template
to create a repository.
An initial release v0.0.0
is automatically created by GitHub Actions.
You can see the generated files in dist
directory on the tag.
Then checkout your repository and test it. Node.js is required.
$ git clone https://github.com/your/repo.git
$ pnpm i
$ pnpm test
Create a pull request for a change.
$ git checkout -b feature
$ git commit -m 'Add feature'
$ gh pr create -fd
Once you merge a pull request, a new minor release (such as v0.1.0
) is created.
When you want to create a stable release, change the major version in release workflow.
- uses: int128/release-typescript-action@v1
with:
major-version: 1
Then a new stable release v1.0.0
is created.
To run this action, create a workflow as follows:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: int128/typescript-action@v1
with:
name: hello
Name | Default | Description |
---|---|---|
name |
(required) | example input |
Name | Description |
---|---|
example |
example output |
When a pull request is merged into main branch, a new minor release is created by GitHub Actions. See https://github.com/int128/release-typescript-action for details.
If a pull request needs to be fixed by Prettier, an additional commit to fix it will be added by GitHub Actions. See https://github.com/int128/update-generated-files-action for details.
You can enable Renovate to update the dependencies. This repository is shipped with the config https://github.com/int128/typescript-action-renovate-config.