diff --git a/.github/workflows/tickle-bot_PullRequest.yml b/.github/workflows/tickle-bot_PullRequest.yml index 9b7a9ab..b23e262 100644 --- a/.github/workflows/tickle-bot_PullRequest.yml +++ b/.github/workflows/tickle-bot_PullRequest.yml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout PR diff --git a/.github/workflows/tickle-bot_PushMaster.yml b/.github/workflows/tickle-bot_PushMaster.yml index 7356b41..aed4ac9 100644 --- a/.github/workflows/tickle-bot_PushMaster.yml +++ b/.github/workflows/tickle-bot_PushMaster.yml @@ -10,7 +10,7 @@ on: jobs: build: name: Build - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -31,6 +31,7 @@ jobs: run: | cd functions/tickle-bot pwd + npm pkg delete scripts.build cp ./package.json __build__/ cp ./package-lock.json __build__/ git rev-list --count master > __build__/ccnt.txt @@ -53,18 +54,21 @@ jobs: deploy-image: name: Deploy Ticklebot needs: build - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Download Build Artifact uses: actions/download-artifact@v3 with: name: tc-api path: tc-api + - name: Setup google auth for github actions + uses: google-github-actions/auth@v1 + with: + credentials_json: ${{ secrets.GCLOUD_AUTH }} - name: Setup gcloud Actions - uses: google-github-actions/setup-gcloud@v0 + uses: google-github-actions/setup-gcloud@v1 with: - version: '397.0.0' - service_account_key: ${{ secrets.GCLOUD_AUTH }} + version: '428.0.0' project_id: ${{ secrets.GCP_PROJECT_ID }} - name: write .env file run: | diff --git a/functions/tickle-bot/package.json b/functions/tickle-bot/package.json index 4eed99d..f798549 100644 --- a/functions/tickle-bot/package.json +++ b/functions/tickle-bot/package.json @@ -1,6 +1,6 @@ { "name": "tickle-bot", - "version": "2.5.3", + "version": "2.5.4", "description": "Provides authenticated requests against our api", "main": "index.js", "scripts": {