From 27e906a6550ec1946bd11f160d2088a30a31d884 Mon Sep 17 00:00:00 2001 From: Michael Lehmann Date: Tue, 22 Apr 2025 16:20:34 -0700 Subject: [PATCH] make sure action builds, also fix dependabot autoapprove --- .github/workflows/dependabot-autoapprove.yml | 8 ++++++-- package.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dependabot-autoapprove.yml b/.github/workflows/dependabot-autoapprove.yml index a40f0d1b9..f64f1f0c6 100644 --- a/.github/workflows/dependabot-autoapprove.yml +++ b/.github/workflows/dependabot-autoapprove.yml @@ -1,8 +1,12 @@ name: Dependabot auto-approve -on: pull_request +on: + pull_request: + workflow_dispatch: + permissions: pull-requests: write id-token: write + contents: read jobs: dependabot: runs-on: ubuntu-latest @@ -17,7 +21,7 @@ jobs: uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 - role-to-assume: ${{ secrets.SECRETS_AWS_PACKAGING_ROLE_TO_ASSUME }} + role-to-assume: arn:aws:iam::206735643321:role/ConfigureAwsCredentialsPackageRole role-duration-seconds: 900 - name: Get bot user token uses: aws-actions/aws-secretsmanager-get-secrets@v2 diff --git a/package.json b/package.json index 4a7800a37..d724eca54 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "build": "tsc", "lint": "biome check --error-on-warnings ./src", "package": "npm run build && ncc build --license THIRD-PARTY -o dist && ncc build src/cleanup/index.ts -o dist/cleanup && cpy dist/THIRD-PARTY . && del-cli dist/THIRD-PARTY", - "test": "npm run lint && vitest run" + "test": "npm run lint && vitest run && npm run build" }, "author": { "name": "Amazon.com, Inc. or its affiliates",