Skip to content

Commit

Permalink
ci: aus organization ci
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Apr 5, 2024
1 parent 69e4f7e commit 614b5c8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: push
permissions:
contents: write
issues: write
id-token: write

env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -40,6 +41,16 @@ jobs:
- name: Compile
run: npm run prepublishOnly

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
# The role is set up via https://github.com/hello-nrfcloud/ci
# secrets.AWS_ACCOUNT_ID_CI is an organization secret
role-to-assume: |
arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID_CI }}:role/hello-nrfcloud-ci-${{ github.event.repository.name }}
# vars.AWS_REGION_CI is an organization variable
aws-region: ${{ vars.AWS_REGION_CI }}

- name: Deploy
run: ./cli.js > http-api-mock.json

Expand Down

0 comments on commit 614b5c8

Please sign in to comment.