From ae92601a397ad33ea636e99d3b63715e9b8b77b8 Mon Sep 17 00:00:00 2001 From: JP Shilton Date: Mon, 28 Aug 2023 10:04:20 -0400 Subject: [PATCH 1/8] Add actions for building project and types --- .github/actions/getsha/action.yml | 12 +++++++ .github/actions/getver/action.yml | 14 +++++++++ .github/actions/publish/action.yml | 16 ++++++++++ .github/actions/setup/action.yml | 31 +++++++++++++++++++ ...d-and-publish-typescript-project-types.yml | 27 ++++++++++++++++ .../build-and-publish-typescript-project.yml | 24 ++++++++++++++ .../build-typescript-project-types.yml | 22 +++++++++++++ .../workflows/build-typescript-project.yml | 21 +++++++++++++ .github/workflows/getsha.yml | 19 ++++++++++++ .github/workflows/getver.yml | 19 ++++++++++++ 10 files changed, 205 insertions(+) create mode 100644 .github/actions/getsha/action.yml create mode 100644 .github/actions/getver/action.yml create mode 100644 .github/actions/publish/action.yml create mode 100644 .github/actions/setup/action.yml create mode 100644 .github/workflows/build-and-publish-typescript-project-types.yml create mode 100644 .github/workflows/build-and-publish-typescript-project.yml create mode 100644 .github/workflows/build-typescript-project-types.yml create mode 100644 .github/workflows/build-typescript-project.yml create mode 100644 .github/workflows/getsha.yml create mode 100644 .github/workflows/getver.yml diff --git a/.github/actions/getsha/action.yml b/.github/actions/getsha/action.yml new file mode 100644 index 0000000..e8034ad --- /dev/null +++ b/.github/actions/getsha/action.yml @@ -0,0 +1,12 @@ +name: Get GitHub SHA + +outputs: + sha: + value: ${{ steps.getsha.outputs.sha }} + +runs: + using: "composite" + steps: + - id: getsha + shell: bash + run: echo "sha=${GITHUB_SHA::8}" >> $GITHUB_OUTPUT diff --git a/.github/actions/getver/action.yml b/.github/actions/getver/action.yml new file mode 100644 index 0000000..4eda2b7 --- /dev/null +++ b/.github/actions/getver/action.yml @@ -0,0 +1,14 @@ +name: Get Version From Tag + +outputs: + version: + value: ${{ steps.vertag.outputs.version }} + +runs: + using: "composite" + + steps: + - id: vertag + shell: bash + if: startsWith(github.ref, 'refs/tags/v') + run: echo "version=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml new file mode 100644 index 0000000..524311d --- /dev/null +++ b/.github/actions/publish/action.yml @@ -0,0 +1,16 @@ +name: Set Version And Publish + +inputs: + version: + required: true + token: + required: true + +runs: + using: "composite" + steps: + - name: Set Version + run: npm version "${{ inputs.version }}" --no-git-tag-version --no-commit-hooks + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ inputs.token }} diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml new file mode 100644 index 0000000..1829a6d --- /dev/null +++ b/.github/actions/setup/action.yml @@ -0,0 +1,31 @@ +name: Setup Runtime and Dependencies + +inputs: + token: + required: true + +runs: + using: "composite" + steps: + - name: Setup node 18 + uses: actions/setup-node@v3 + with: + node-version: '18' + registry-url: https://npm.pkg.github.com/ + scope: '@openphone' + + - uses: actions/checkout@v3 + + - name: Cache dependencies + id: cache + uses: actions/cache@v3 + with: + path: ./node_modules + key: modules-${{ hashFiles('package-lock.json') }} + + - name: Run CI + if: steps.cache.outputs.cache-hit != 'true' + run: npm ci + shell: bash + env: + NODE_AUTH_TOKEN: ${{inputs.token}} diff --git a/.github/workflows/build-and-publish-typescript-project-types.yml b/.github/workflows/build-and-publish-typescript-project-types.yml new file mode 100644 index 0000000..3378b69 --- /dev/null +++ b/.github/workflows/build-and-publish-typescript-project-types.yml @@ -0,0 +1,27 @@ +name: Build Application + +on: + workflow_call: + secrets: + token: + description: 'The GitHub/npm token' + required: true + +jobs: + getver: + uses: OpenPhone/gha/.github/actions/getver@common-actions + + 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@common-actions + - uses: OpenPhone/gha/.github/actions/publish@common-actions + with: + token: ${{ inputs.token }} + version: ${{ needs.getver.outputs.version }} diff --git a/.github/workflows/build-and-publish-typescript-project.yml b/.github/workflows/build-and-publish-typescript-project.yml new file mode 100644 index 0000000..34f8fb6 --- /dev/null +++ b/.github/workflows/build-and-publish-typescript-project.yml @@ -0,0 +1,24 @@ +name: Build Application + +on: + workflow_call: + secrets: + token: + description: 'The GitHub/npm token' + required: true + +jobs: + getver: + uses: OpenPhone/gha/.github/actions/getver@common-actions + + 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@common-actions + - uses: OpenPhone/gha/.github/actions/publish@common-actions + with: + token: ${{ inputs.token }} + version: ${{ needs.getver.outputs.version }} diff --git a/.github/workflows/build-typescript-project-types.yml b/.github/workflows/build-typescript-project-types.yml new file mode 100644 index 0000000..a71374e --- /dev/null +++ b/.github/workflows/build-typescript-project-types.yml @@ -0,0 +1,22 @@ +name: Build Types + +on: + workflow_call: + secrets: + token: + description: 'The GitHub/npm token' + required: true + +jobs: + build-types: + name: Build Types + runs-on: ubuntu-22.04 + defaults: + run: + working-directory: ./types + steps: + - uses: OpenPhone/gha/.github/actions/setup@common-actions + with: + token: ${{ secrets.token }} + - run: npm run build + - run: npm run test diff --git a/.github/workflows/build-typescript-project.yml b/.github/workflows/build-typescript-project.yml new file mode 100644 index 0000000..eb20dfa --- /dev/null +++ b/.github/workflows/build-typescript-project.yml @@ -0,0 +1,21 @@ +name: Build Application + +on: + workflow_call: + secrets: + token: + description: 'The GitHub/npm token' + required: true + +jobs: + build: + name: Build + runs-on: ubuntu-22.04 + steps: + - uses: OpenPhone/gha/.github/actions/setup@common-actions + with: + token: ${{ secrets.token }} + - run: npm run lint + - run: npm run typecheck + - run: npm run build + - run: node . diff --git a/.github/workflows/getsha.yml b/.github/workflows/getsha.yml new file mode 100644 index 0000000..6e9ccc0 --- /dev/null +++ b/.github/workflows/getsha.yml @@ -0,0 +1,19 @@ +name: Get GitHub SHA + +on: + workflow_call: + outputs: + sha: + value: ${{ jobs.getsha.outputs.sha }} + +jobs: + getsha: + name: Get SHA + runs-on: ubuntu-22.04 + + outputs: + sha: ${{ steps.getsha.outputs.sha }} + + steps: + - id: getsha + uses: OpenPhone/gha/.github/actions/getsha@common-actions diff --git a/.github/workflows/getver.yml b/.github/workflows/getver.yml new file mode 100644 index 0000000..c57fb6f --- /dev/null +++ b/.github/workflows/getver.yml @@ -0,0 +1,19 @@ +name: Get Version from Tag + +on: + workflow_call: + outputs: + version: + value: ${{ jobs.getver.outputs.version }} + +jobs: + getver: + name: Get Version + runs-on: ubuntu-22.04 + + outputs: + version: ${{ steps.getver.outputs.version }} + + steps: + - id: getver + uses: OpenPhone/gha/.github/actions/getver@common-actions From b8175d4fadd432340e6dfe913870d92a5a495c10 Mon Sep 17 00:00:00 2001 From: JP Shilton Date: Mon, 28 Aug 2023 16:18:31 -0400 Subject: [PATCH 2/8] name steps --- .github/actions/setup/action.yml | 3 ++- .github/workflows/build-typescript-project.yml | 15 ++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 1829a6d..c7dab83 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -14,7 +14,8 @@ runs: registry-url: https://npm.pkg.github.com/ scope: '@openphone' - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - name: Cache dependencies id: cache diff --git a/.github/workflows/build-typescript-project.yml b/.github/workflows/build-typescript-project.yml index eb20dfa..2e9ce4d 100644 --- a/.github/workflows/build-typescript-project.yml +++ b/.github/workflows/build-typescript-project.yml @@ -12,10 +12,15 @@ jobs: name: Build runs-on: ubuntu-22.04 steps: - - uses: OpenPhone/gha/.github/actions/setup@common-actions + - name: Setup + uses: OpenPhone/gha/.github/actions/setup@common-actions with: token: ${{ secrets.token }} - - run: npm run lint - - run: npm run typecheck - - run: npm run build - - run: node . + - name: Lint + run: npm run lint + - name: Typecheck + run: npm run typecheck + - name: Build + run: npm run build + - name: Run + run: node . From 608f7da39e79454dbb9ad028cd848699ab49578b Mon Sep 17 00:00:00 2001 From: JP Shilton Date: Mon, 28 Aug 2023 16:24:13 -0400 Subject: [PATCH 3/8] cleanup --- .github/actions/publish/action.yml | 4 +++- .../build-and-publish-typescript-project-types.yml | 7 +++++-- .../build-and-publish-typescript-project.yml | 7 +++++-- .github/workflows/build-typescript-project-types.yml | 11 ++++++++--- 4 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml index 524311d..e453bc5 100644 --- a/.github/actions/publish/action.yml +++ b/.github/actions/publish/action.yml @@ -11,6 +11,8 @@ runs: steps: - name: Set Version run: npm version "${{ inputs.version }}" --no-git-tag-version --no-commit-hooks - - run: npm publish + + - name: Publish + run: npm publish env: NODE_AUTH_TOKEN: ${{ inputs.token }} diff --git a/.github/workflows/build-and-publish-typescript-project-types.yml b/.github/workflows/build-and-publish-typescript-project-types.yml index 3378b69..d5e1718 100644 --- a/.github/workflows/build-and-publish-typescript-project-types.yml +++ b/.github/workflows/build-and-publish-typescript-project-types.yml @@ -20,8 +20,11 @@ jobs: run: working-directory: ./types steps: - - uses: OpenPhone/gha/.github/workflows/build-typescript-project-types.yml@common-actions - - uses: OpenPhone/gha/.github/actions/publish@common-actions + - name: Build + uses: OpenPhone/gha/.github/workflows/build-typescript-project-types.yml@common-actions + + - name: Publish + uses: OpenPhone/gha/.github/actions/publish@common-actions with: token: ${{ inputs.token }} version: ${{ needs.getver.outputs.version }} diff --git a/.github/workflows/build-and-publish-typescript-project.yml b/.github/workflows/build-and-publish-typescript-project.yml index 34f8fb6..44b791c 100644 --- a/.github/workflows/build-and-publish-typescript-project.yml +++ b/.github/workflows/build-and-publish-typescript-project.yml @@ -17,8 +17,11 @@ jobs: needs: getver if: github.event_name == 'push' steps: - - uses: OpenPhone/gha/.github/workflows/build-typescript-project.yml@common-actions - - uses: OpenPhone/gha/.github/actions/publish@common-actions + - name: Build + uses: OpenPhone/gha/.github/workflows/build-typescript-project.yml@common-actions + + - name: Publish + uses: OpenPhone/gha/.github/actions/publish@common-actions with: token: ${{ inputs.token }} version: ${{ needs.getver.outputs.version }} diff --git a/.github/workflows/build-typescript-project-types.yml b/.github/workflows/build-typescript-project-types.yml index a71374e..61722e4 100644 --- a/.github/workflows/build-typescript-project-types.yml +++ b/.github/workflows/build-typescript-project-types.yml @@ -15,8 +15,13 @@ jobs: run: working-directory: ./types steps: - - uses: OpenPhone/gha/.github/actions/setup@common-actions + - name: Setup + uses: OpenPhone/gha/.github/actions/setup@common-actions with: token: ${{ secrets.token }} - - run: npm run build - - run: npm run test + + - name: Build + run: npm run build + + - name: Test + run: npm node . From b2d5d17081f9b4a5a99ea0ba074b4dd66f5fd049 Mon Sep 17 00:00:00 2001 From: JP Shilton Date: Mon, 28 Aug 2023 16:32:54 -0400 Subject: [PATCH 4/8] newlines --- .github/workflows/build-typescript-project.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-typescript-project.yml b/.github/workflows/build-typescript-project.yml index 2e9ce4d..11d176b 100644 --- a/.github/workflows/build-typescript-project.yml +++ b/.github/workflows/build-typescript-project.yml @@ -16,11 +16,15 @@ jobs: uses: OpenPhone/gha/.github/actions/setup@common-actions with: token: ${{ secrets.token }} + - name: Lint run: npm run lint + - name: Typecheck run: npm run typecheck + - name: Build run: npm run build + - name: Run run: node . From f78c6cce777bdabffe1e23a7ff0271b07ba0f775 Mon Sep 17 00:00:00 2001 From: JP Shilton Date: Mon, 28 Aug 2023 17:06:12 -0400 Subject: [PATCH 5/8] remove unneeded actions --- .github/actions/getsha/action.yml | 12 ------------ .github/actions/getver/action.yml | 14 -------------- .../build-and-publish-typescript-project-types.yml | 2 +- .../build-and-publish-typescript-project.yml | 2 +- .github/workflows/getsha.yml | 3 ++- .github/workflows/getver.yml | 8 +++++--- 6 files changed, 9 insertions(+), 32 deletions(-) delete mode 100644 .github/actions/getsha/action.yml delete mode 100644 .github/actions/getver/action.yml diff --git a/.github/actions/getsha/action.yml b/.github/actions/getsha/action.yml deleted file mode 100644 index e8034ad..0000000 --- a/.github/actions/getsha/action.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Get GitHub SHA - -outputs: - sha: - value: ${{ steps.getsha.outputs.sha }} - -runs: - using: "composite" - steps: - - id: getsha - shell: bash - run: echo "sha=${GITHUB_SHA::8}" >> $GITHUB_OUTPUT diff --git a/.github/actions/getver/action.yml b/.github/actions/getver/action.yml deleted file mode 100644 index 4eda2b7..0000000 --- a/.github/actions/getver/action.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Get Version From Tag - -outputs: - version: - value: ${{ steps.vertag.outputs.version }} - -runs: - using: "composite" - - steps: - - id: vertag - shell: bash - if: startsWith(github.ref, 'refs/tags/v') - run: echo "version=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/build-and-publish-typescript-project-types.yml b/.github/workflows/build-and-publish-typescript-project-types.yml index d5e1718..9b6f865 100644 --- a/.github/workflows/build-and-publish-typescript-project-types.yml +++ b/.github/workflows/build-and-publish-typescript-project-types.yml @@ -9,7 +9,7 @@ on: jobs: getver: - uses: OpenPhone/gha/.github/actions/getver@common-actions + uses: OpenPhone/gha/.github/workdlows/getver.yml@common-actions build-types: name: Build and Publish Types diff --git a/.github/workflows/build-and-publish-typescript-project.yml b/.github/workflows/build-and-publish-typescript-project.yml index 44b791c..0478a69 100644 --- a/.github/workflows/build-and-publish-typescript-project.yml +++ b/.github/workflows/build-and-publish-typescript-project.yml @@ -9,7 +9,7 @@ on: jobs: getver: - uses: OpenPhone/gha/.github/actions/getver@common-actions + uses: OpenPhone/gha/.github/workflows/getver.yml@common-actions build: name: Build and Publish Types diff --git a/.github/workflows/getsha.yml b/.github/workflows/getsha.yml index 6e9ccc0..7fe4986 100644 --- a/.github/workflows/getsha.yml +++ b/.github/workflows/getsha.yml @@ -16,4 +16,5 @@ jobs: steps: - id: getsha - uses: OpenPhone/gha/.github/actions/getsha@common-actions + shell: bash + run: echo "sha=${GITHUB_SHA::8}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/getver.yml b/.github/workflows/getver.yml index c57fb6f..ea2210f 100644 --- a/.github/workflows/getver.yml +++ b/.github/workflows/getver.yml @@ -12,8 +12,10 @@ jobs: runs-on: ubuntu-22.04 outputs: - version: ${{ steps.getver.outputs.version }} + version: ${{ steps.vertag.outputs.version }} steps: - - id: getver - uses: OpenPhone/gha/.github/actions/getver@common-actions + - id: vertag + shell: bash + if: startsWith(github.ref, 'refs/tags/v') + run: echo "version=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT From 571efad5055c7e52f70fd5969dd475dd1bb96c17 Mon Sep 17 00:00:00 2001 From: JP Shilton Date: Mon, 28 Aug 2023 17:10:13 -0400 Subject: [PATCH 6/8] typo --- .../workflows/build-and-publish-typescript-project-types.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-publish-typescript-project-types.yml b/.github/workflows/build-and-publish-typescript-project-types.yml index 9b6f865..d96b260 100644 --- a/.github/workflows/build-and-publish-typescript-project-types.yml +++ b/.github/workflows/build-and-publish-typescript-project-types.yml @@ -9,7 +9,7 @@ on: jobs: getver: - uses: OpenPhone/gha/.github/workdlows/getver.yml@common-actions + uses: OpenPhone/gha/.github/workflows/getver.yml@common-actions build-types: name: Build and Publish Types From b9af752924ac9e7664c17dbfd240449a5a8e44b7 Mon Sep 17 00:00:00 2001 From: JP Shilton Date: Mon, 28 Aug 2023 17:13:05 -0400 Subject: [PATCH 7/8] common-actions -> v4 --- .../build-and-publish-typescript-project-types.yml | 6 +++--- .github/workflows/build-and-publish-typescript-project.yml | 6 +++--- .github/workflows/build-typescript-project-types.yml | 2 +- .github/workflows/build-typescript-project.yml | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-and-publish-typescript-project-types.yml b/.github/workflows/build-and-publish-typescript-project-types.yml index d96b260..49b1083 100644 --- a/.github/workflows/build-and-publish-typescript-project-types.yml +++ b/.github/workflows/build-and-publish-typescript-project-types.yml @@ -9,7 +9,7 @@ on: jobs: getver: - uses: OpenPhone/gha/.github/workflows/getver.yml@common-actions + uses: OpenPhone/gha/.github/workflows/getver.yml@v4 build-types: name: Build and Publish Types @@ -21,10 +21,10 @@ jobs: working-directory: ./types steps: - name: Build - uses: OpenPhone/gha/.github/workflows/build-typescript-project-types.yml@common-actions + uses: OpenPhone/gha/.github/workflows/build-typescript-project-types.yml@v4 - name: Publish - uses: OpenPhone/gha/.github/actions/publish@common-actions + uses: OpenPhone/gha/.github/actions/publish@v4 with: token: ${{ inputs.token }} version: ${{ needs.getver.outputs.version }} diff --git a/.github/workflows/build-and-publish-typescript-project.yml b/.github/workflows/build-and-publish-typescript-project.yml index 0478a69..a69e86a 100644 --- a/.github/workflows/build-and-publish-typescript-project.yml +++ b/.github/workflows/build-and-publish-typescript-project.yml @@ -9,7 +9,7 @@ on: jobs: getver: - uses: OpenPhone/gha/.github/workflows/getver.yml@common-actions + uses: OpenPhone/gha/.github/workflows/getver.yml@v4 build: name: Build and Publish Types @@ -18,10 +18,10 @@ jobs: if: github.event_name == 'push' steps: - name: Build - uses: OpenPhone/gha/.github/workflows/build-typescript-project.yml@common-actions + uses: OpenPhone/gha/.github/workflows/build-typescript-project.yml@v4 - name: Publish - uses: OpenPhone/gha/.github/actions/publish@common-actions + uses: OpenPhone/gha/.github/actions/publish@v4 with: token: ${{ inputs.token }} version: ${{ needs.getver.outputs.version }} diff --git a/.github/workflows/build-typescript-project-types.yml b/.github/workflows/build-typescript-project-types.yml index 61722e4..0d39ace 100644 --- a/.github/workflows/build-typescript-project-types.yml +++ b/.github/workflows/build-typescript-project-types.yml @@ -16,7 +16,7 @@ jobs: working-directory: ./types steps: - name: Setup - uses: OpenPhone/gha/.github/actions/setup@common-actions + uses: OpenPhone/gha/.github/actions/setup@v4 with: token: ${{ secrets.token }} diff --git a/.github/workflows/build-typescript-project.yml b/.github/workflows/build-typescript-project.yml index 11d176b..0a7d5ad 100644 --- a/.github/workflows/build-typescript-project.yml +++ b/.github/workflows/build-typescript-project.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Setup - uses: OpenPhone/gha/.github/actions/setup@common-actions + uses: OpenPhone/gha/.github/actions/setup@v4 with: token: ${{ secrets.token }} From 8a9ff4754325bd47a110c66bc58ffc3f358db095 Mon Sep 17 00:00:00 2001 From: JP Shilton Date: Mon, 28 Aug 2023 17:19:26 -0400 Subject: [PATCH 8/8] client workflows --- ...-and-publish-typescript-project-client.yml | 30 +++++++++++++++++++ .../build-typescript-project-client.yml | 30 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .github/workflows/build-and-publish-typescript-project-client.yml create mode 100644 .github/workflows/build-typescript-project-client.yml diff --git a/.github/workflows/build-and-publish-typescript-project-client.yml b/.github/workflows/build-and-publish-typescript-project-client.yml new file mode 100644 index 0000000..1ed1853 --- /dev/null +++ b/.github/workflows/build-and-publish-typescript-project-client.yml @@ -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 }} diff --git a/.github/workflows/build-typescript-project-client.yml b/.github/workflows/build-typescript-project-client.yml new file mode 100644 index 0000000..6af2bbc --- /dev/null +++ b/.github/workflows/build-typescript-project-client.yml @@ -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 .