This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for
mesh build
(#32)
- Loading branch information
1 parent
be3fa82
commit 78e4d9c
Showing
254 changed files
with
5,934 additions
and
1,414 deletions.
There are no files selected for viewing
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,5 @@ | ||
--- | ||
'nx-plugin-graphql-mesh': major | ||
--- | ||
|
||
Add `build`, `build-gateway` & `build-swc` executors |
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
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,79 @@ | ||
name: 'Deploy' | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
apps: | ||
description: The apps to deploy | ||
type: string | ||
required: true | ||
production: | ||
description: Deploy production? | ||
type: boolean | ||
required: false | ||
default: false | ||
secrets: | ||
VERCEL_ORG_ID: | ||
description: 'The Vercel ORG ID' | ||
required: true | ||
NX__NEXTJS_TRIPPIN__VERCEL_PROJECT_ID: | ||
description: 'The nextjs/trippin Vercel Project Id' | ||
required: true | ||
NX__NEXTJS_TRIPPIN_SWC__VERCEL_PROJECT_ID: | ||
description: 'The nextjs/trippin-swc Vercel Project Id' | ||
required: true | ||
VERCEL_TOKEN: | ||
description: 'The Vercel API token' | ||
required: true | ||
|
||
concurrency: | ||
group: deploy-${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Deploy env | ||
id: deploy-env | ||
shell: bash | ||
run: | | ||
name=Preview | ||
if [ ${{ inputs.production }} = true ]; then | ||
name=Production | ||
fi | ||
echo The env is $name | ||
echo ::set-output name=name::$name | ||
- name: Deploy to Vercel Action | ||
if: contains(inputs.apps, 'nextjs-trippin') | ||
uses: BetaHuhn/deploy-to-vercel-action@v1 | ||
with: | ||
GITHUB_DEPLOYMENT_ENV: nextjs/trippin ${{ steps.deploy-env.outputs.name }} | ||
GITHUB_DEPLOYMENT: true | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PR_LABELS: vercel | ||
PRODUCTION: ${{ inputs.production }} | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.NX__NEXTJS_TRIPPIN__VERCEL_PROJECT_ID }} | ||
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Deploy to Vercel Action | ||
if: contains(inputs.apps, 'nextjs-trippin-swc') | ||
uses: BetaHuhn/deploy-to-vercel-action@v1 | ||
with: | ||
GITHUB_DEPLOYMENT_ENV: nextjs/trippin-swc ${{ steps.deploy-env.outputs.name }} | ||
GITHUB_DEPLOYMENT: true | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PR_LABELS: vercel | ||
PRODUCTION: ${{ inputs.production }} | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.NX__NEXTJS_TRIPPIN_SWC__VERCEL_PROJECT_ID }} | ||
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} |
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,21 @@ | ||
name: 'Pull Request' | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: pr-${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
build-test: | ||
uses: ./.github/workflows/build-test.yml | ||
secrets: inherit | ||
|
||
deploy: | ||
needs: [build-test] | ||
uses: ./.github/workflows/deploy.yml | ||
with: | ||
apps: ${{ needs.build-test.outputs.affectedApps }} | ||
secrets: inherit |
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
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
2 changes: 1 addition & 1 deletion
2
...nx-plugin-graphql-mesh-e2e/.eslintrc.json → ...-gateway/stackexchange-e2e/.eslintrc.json
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
Oops, something went wrong.