Skip to content

Commit

Permalink
feat: simplify gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
kevbarns committed Jun 21, 2023
1 parent 1a7c632 commit 3fc4015
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/typescript-server-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
path: "./server/node_modules"
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn
${{ runner.os }}-
- name: Install dependencies
working-directory: ./server
Expand All @@ -37,18 +37,3 @@ jobs:
- name: Build Typescript
working-directory: ./server
run: yarn build

- name: Check build status
id: check-build
run: |
exitCode=$?
if [ $exitCode -ne 0 ]; then
echo "::set-output name=build-failed::true"
fi
- name: Comment on pull request
uses: peter-evans/create-or-update-comment@v3
if: steps.check-build.outputs.build-failed == 'true'
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
body: "The build failed. Please fix the issues before merging."

0 comments on commit 3fc4015

Please sign in to comment.