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.
This commit is contained in:
Tom Keller
2022-11-04 14:36:26 -07:00
committed by GitHub
parent 3179f23dc4
commit e0f275d6a6

View File

@@ -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 }}}"