diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f88bf04..c97c2c6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: - name: 安裝 Node.js 與 yarn uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: 'yarn' - name: install, lint, test run: | @@ -34,7 +34,7 @@ jobs: - name: 安裝 Node.js 與 yarn uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: 'yarn' - id: 'auth' uses: google-github-actions/auth@v0 diff --git a/package.json b/package.json index 66d4765..7b7d596 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "jest": "^29.6.2" }, "scripts": { - "deploy": "gcloud functions deploy gcf-line-devbot --allow-unauthenticated --entry-point=main --env-vars-file=.env.yaml --gen2 --max-instances=1 --memory=128Mi --no-user-output-enabled --region=us-central1 --runtime=nodejs18 --timeout=60s --trigger-http && gcloud run services update gcf-line-devbot --region=us-central1 --cpu 1 --concurrency 80", + "deploy": "gcloud functions deploy gcf-line-devbot --allow-unauthenticated --entry-point=main --env-vars-file=.env.yaml --gen2 --max-instances=1 --memory=128Mi --no-user-output-enabled --region=us-central1 --runtime=nodejs20 --timeout=60s --trigger-http && gcloud run services update gcf-line-devbot --region=us-central1 --cpu 1 --concurrency 80", "lint": "eslint --ext .js --fix .", "localhost-run": "autossh -M 0 -o ServerAliveInterval=60 -o ServerAliveCountMax=3 -o StrictHostKeyChecking=no -R 80:localhost:3000 nokey@localhost.run", "repl": "node --experimental-repl-await repl.js",