Composite action to checkout/build/test typescript with npm or yarn.
usage:
name: push
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: linz/action-typescript@v3
Example github action, using both the composite action and reusable workflow
name: push
on:
push:
jobs:
reusable-workflow:
uses: linz/action-typescript/.github/workflows/main.yml@v3
with:
node-version: "20.x"
registry-url: "https://npm.pkg.github.com"
package-manager: "npm"
composite-action:
runs-on: ubuntu-latest
steps:
- name: Build and test
uses: linz/action-typescript@v3
with:
node-version: "20.x"
registry-url: "https://npm.pkg.github.com"
package-manager: "npm"