From e0f275d6a6e9122f5c001f38106a37048ffe7c66 Mon Sep 17 00:00:00 2001 From: Tom Keller <1083460+kellertk@users.noreply.github.com> Date: Fri, 4 Nov 2022 14:36:26 -0700 Subject: [PATCH] fix: packaging test failure (#565) The tests fail if there are credentials available in the env, so we need to get the AWS credentials *after* the package step. --- .github/workflows/package.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 013221f..9ad300e 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -16,6 +16,16 @@ jobs: id-token: write contents: read steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + ref: ${{ github.ref_name }} + - name: Package + run: | + npm ci + npm test + npm run package - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1-node16 with: @@ -29,17 +39,6 @@ jobs: parse-json-secrets: true secret-ids: | OSDS,arn:aws:secretsmanager:us-west-2:294535624312:secret:github-aws-sdk-osds-automation-ZHNalp - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: ${{ github.ref_name }} - token: ${{ env.OSDS_ACCESS_TOKEN }} - - name: Package - run: | - npm ci - npm test - npm run package - name: Commit run: | echo "::add-mask::${{ env.OSDS_ACCESS_TOKEN }}}"