summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: 44e00fb410155d6c7acbfc674a773a4fd51d1b0f (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Build
on: 
    push: 
        branches:
            - main
jobs:
    build:
        runs-on: ubuntu-latest
        steps: 
            - name: Checkout project
              uses: actions/checkout@v2
            - name: Setup Node.js
              uses: actions/[email protected]
              with:
                node-version: 16.x
            - 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: 'main' # 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