-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9af752
commit 8a9ff47
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
.github/workflows/build-and-publish-typescript-project-client.yml
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
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 }} |
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
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 . |