Skip to content

Commit e0f275d

Browse files
authored
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.
1 parent 3179f23 commit e0f275d

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/package.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ jobs:
1616
id-token: write
1717
contents: read
1818
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 0
23+
ref: ${{ github.ref_name }}
24+
- name: Package
25+
run: |
26+
npm ci
27+
npm test
28+
npm run package
1929
- name: Configure AWS credentials
2030
uses: aws-actions/configure-aws-credentials@v1-node16
2131
with:
@@ -29,17 +39,6 @@ jobs:
2939
parse-json-secrets: true
3040
secret-ids: |
3141
OSDS,arn:aws:secretsmanager:us-west-2:294535624312:secret:github-aws-sdk-osds-automation-ZHNalp
32-
- name: Checkout
33-
uses: actions/checkout@v3
34-
with:
35-
fetch-depth: 0
36-
ref: ${{ github.ref_name }}
37-
token: ${{ env.OSDS_ACCESS_TOKEN }}
38-
- name: Package
39-
run: |
40-
npm ci
41-
npm test
42-
npm run package
4342
- name: Commit
4443
run: |
4544
echo "::add-mask::${{ env.OSDS_ACCESS_TOKEN }}}"

0 commit comments

Comments
 (0)