Skip to content

Add actions for building project and types #2

Add actions for building project and types

Add actions for building project and types #2

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

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

View workflow run for this annotation

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

Invalid workflow file

invalid value workflow reference: workflow file should have either a '.yml' or '.yaml' file extension
build-types:
name: Build and Publish Types
runs-on: ubuntu-22.04
needs: getver
if: github.event_name == 'push'
defaults:
run:
working-directory: ./types
steps:
- uses: OpenPhone/gha/.github/workflows/build-typescript-project-types.yml@jpTest
- 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}}