Add actions for building project and types #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / .github/workflows/build-and-publish-typescript-project-types.ymlInvalid workflow file
|
||
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}} |