Skip to content

Commit

Permalink
client workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jpshilton-op committed Aug 28, 2023
1 parent b9af752 commit 8a9ff47
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-and-publish-typescript-project-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Client

on:
workflow_call:
secrets:
token:
description: 'The GitHub/npm token'
required: true

jobs:
getver:
uses: OpenPhone/gha/.github/workflows/getver.yml@v4

build-client:
name: Build and Publish Client
runs-on: ubuntu-22.04
needs: getver
if: github.event_name == 'push'
defaults:
run:
working-directory: ./client
steps:
- name: Build
uses: OpenPhone/gha/.github/workflows/build-typescript-project-client.yml@v4

- name: Publish
uses: OpenPhone/gha/.github/actions/publish@v4
with:
token: ${{ inputs.token }}
version: ${{ needs.getver.outputs.version }}
30 changes: 30 additions & 0 deletions .github/workflows/build-typescript-project-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Client

on:
workflow_call:
secrets:
token:
description: 'The GitHub/npm token'
required: true

jobs:
build-client:
name: Build Client
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./client
steps:
- name: Setup
uses: OpenPhone/gha/.github/actions/setup@v4
with:
token: ${{ secrets.token }}

- name: Lint
run: npm run lint

- name: Build
run: npm run build

- name: Test
run: npm node .

0 comments on commit 8a9ff47

Please sign in to comment.