diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..97677ea --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages + +name: Lint, Test, and Build + +on: + pull_request: + types: + - closed + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20] + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + - name: Install dependencies + run: npm install + - name: Build + run: npm run build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..9fa7958 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,42 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages + +name: Lint, Test, and Build + +on: + release: + types: [created] + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20] + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + - name: Install dependencies + run: npm install + - name: Build + run: npm run build + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Authenticate to Google Cloud + uses: "google-github-actions/auth@v2" + with: + credentials_json: "${{ secrets.GCP_CREDENTIALS }}" + - name: Set up Google Cloud SDK + uses: google-github-actions/setup-gcloud@v2 + with: + project_id: mesh-432507 + install_components: "gcloud" + - name: Prerun GCP auth + run: | + gcloud auth configure-docker asia-southeast1-docker.pkg.dev + - name: Deploy Backend + run: npm run deploy diff --git a/.gitignore b/.gitignore index 247bffc..dd13aef 100644 --- a/.gitignore +++ b/.gitignore @@ -41,4 +41,8 @@ yarn-error.log* *.pem */**/.Build -package-lock.json \ No newline at end of file +package-lock.json + +# GCP +key.json +service-account.json \ No newline at end of file diff --git a/apps/mesh-cloud/package.json b/apps/mesh-cloud/package.json index 30ab682..7953012 100644 --- a/apps/mesh-cloud/package.json +++ b/apps/mesh-cloud/package.json @@ -42,7 +42,7 @@ "copy-to-clipboard": "^3.3.3", "geist": "^1.3.0", "lucide-react": "^0.436.0", - "next": "^14.2.4", + "next": "^15.2.0", "next-auth": "^4.24.7", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -74,4 +74,4 @@ "initVersion": "7.37.0" }, "packageManager": "npm@10.7.0" -} +} \ No newline at end of file diff --git a/apps/mesh-cloud/src/apps/dev/transaction.tsx b/apps/mesh-cloud/src/apps/dev/transaction.tsx index 99837c2..96d40a5 100644 --- a/apps/mesh-cloud/src/apps/dev/transaction.tsx +++ b/apps/mesh-cloud/src/apps/dev/transaction.tsx @@ -32,9 +32,7 @@ export function SelectNetwork({ return (