Skip to content

Commit

Permalink
refactor github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zkcarter committed Apr 12, 2024
1 parent b79fc0a commit 17395ac
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 436 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI
on: [push]

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Run npm install
run: npm ci

- name: Run Build Command
run: |
if [[ ${{ github.ref }} == 'refs/heads/main' ]]; then
npm run generate:node:nexus
elif [[ ${{ github.ref }} == 'refs/heads/preview' ]]; then
npm run generate:node:nexus
elif [[ ${{ github.ref }} == 'refs/heads/dev' ]]; then
npm run generate:node:nexus-sepolia
else
echo "No specific build command for this branch."
fi
164 changes: 0 additions & 164 deletions .github/workflows/e2e.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/feature.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/lint-pr-title.yml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/production.yml

This file was deleted.

Loading

0 comments on commit 17395ac

Please sign in to comment.