https://github.com/alexthemaster/action-build-typescript
A GitHub action that can be used to build TypeScript code and then push that built code to a different branch
https://github.com/alexthemaster/action-build-typescript
action build typescript typescript-action typescript-build
Last synced: 5 months ago
JSON representation
A GitHub action that can be used to build TypeScript code and then push that built code to a different branch
- Host: GitHub
- URL: https://github.com/alexthemaster/action-build-typescript
- Owner: alexthemaster
- License: mit
- Created: 2021-01-04T15:31:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-15T16:33:13.000Z (over 1 year ago)
- Last Synced: 2025-11-17T23:22:52.347Z (7 months ago)
- Topics: action, build, typescript, typescript-action, typescript-build
- Language: JavaScript
- Homepage:
- Size: 1.09 MB
- Stars: 8
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# action-build-typescript
A GitHub action that can be used to build TypeScript code and then push that built code to a different branch
## Usage
```yml
name: Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Build and push
uses: alexthemaster/action-build-typescript@v. # check the releases tab on the right for versions (looks like this: v1.0.0)
# use this if you want the sharpest of cutting edges (can and probably WILL break from time to time)
# uses: alexthemaster/action-build-typescript@master
with:
pushToBranch: true # optional; can either be true or false | defaults to false
branch: 'dist' # optional; the name of the branch the action should push the compiled code to | defaults to dist
githubToken: ${{ secrets.GITHUB_TOKEN }} # required if you use the pushToBranch option
```