Skip to content

Add actions for building project and types #5

Add actions for building project and types

Add actions for building project and types #5

name: Build Application
on:
workflow_call:
secrets:
token:
description: 'The GitHub/npm token'
required: true
jobs:
getver:
uses: OpenPhone/gha/.github/workflows/getver@v4

Check failure on line 12 in .github/workflows/build-and-publish-typescript-project.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-publish-typescript-project.yml

Invalid workflow file

invalid value workflow reference: workflow file should have either a '.yml' or '.yaml' file extension
build:
name: Build and Publish Types
runs-on: ubuntu-22.04
needs: getver
if: github.event_name == 'push'
steps:
- uses: OpenPhone/gha/.github/workflows/build-typescript-project.yml@v4
- name: Set Version
run: npm version "${{ needs.getver.outputs.version }}" --no-git-tag-version --no-commit-hooks
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GPR_ACCESS_TOKEN}}