Skip to content

Commit

Permalink
fix: Alpha 2.18 deploy (#1420)
Browse files Browse the repository at this point in the history
Co-authored-by: nicosampler <[email protected]>
Co-authored-by: dbeal <[email protected]>
Co-authored-by: FuzzB0t <[email protected]>
Co-authored-by: saeta.eth <[email protected]>
  • Loading branch information
5 people authored Sep 30, 2024
1 parent 7342f44 commit df61d49
Show file tree
Hide file tree
Showing 36 changed files with 5,753 additions and 165,342 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/check-branch-name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Branch Name

on:
pull_request:
types: [opened, synchronize]

jobs:
check-branch-name:
runs-on: ubuntu-latest
steps:
- name: Check branch name for different base branches
uses: actions/github-script@v7
with:
script: |
const base = '${{ github.base_ref }}'
const branch = '${{ github.head_ref }}'
switch(base) {
case 'main':
case 'alpha': {
if (!/^hotfix\/[a-z0-9-_\.]+$/.test(branch)) {
console.error(`::error::Branch name must start with 'hotfix/*' for PRs to ${base}`)
process.exit(1)
}
break;
}
case 'dev': {
if (!/^(feat|fix|chore|docs|test)\/[a-z0-9-_\.]+$/.test(branch)) {
console.error(`::error::Branch name must start with '(feat|fix|chore|docs|test)/*' for PRs to ${base}`)
process.exit(1)
}
break;
}
}
2 changes: 0 additions & 2 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:

- run: pnpm i --prefer-frozen-lockfile
- run: pnpm build
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

- name: E2E Tests
run: cd ./packages/cli && pnpm test-e2e
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-snx-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:

- run: pnpm i --prefer-frozen-lockfile
- run: pnpm build
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

- name: Synthetix CI Downstream
run: cd ./packages/cli && pnpm test-snx-ci
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,4 @@ jobs:

- run: pnpm i --prefer-frozen-lockfile
- run: pnpm build
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
- run: pnpm test
6 changes: 1 addition & 5 deletions .github/workflows/upload-to-ipfs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Upload Website to IPFS

on:
pull_request:
branches: [main, alpha, dev]
on: workflow_dispatch

jobs:
upload-ipfs:
Expand All @@ -19,8 +17,6 @@ jobs:

- run: pnpm i --prefer-frozen-lockfile
- run: pnpm build
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

- run: echo "${{ vars.NEXT_ENV }}" > packages/website/.env.local
- run: cd packages/website && pnpm build
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/website-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:

- run: pnpm i --prefer-frozen-lockfile
- run: pnpm build
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

- name: Set up Cypress binary cache
uses: actions/cache@v4
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ jspm_packages/
# local env vars
.env.local

# nx cache folder
.nx/cache
# nx
.nx
1 change: 0 additions & 1 deletion .nx/workspace-data/d/server-process.json

This file was deleted.

Loading

0 comments on commit df61d49

Please sign in to comment.