Add actions for building project and types #4
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.yml GitHub Actions / .github/workflows/build-and-publish-typescript-project.ymlInvalid workflow file
|
||
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@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}} |