Skip to content

fix(deps): update aws-sdk-js-v3 monorepo to ^3.606.0 #502

fix(deps): update aws-sdk-js-v3 monorepo to ^3.606.0

fix(deps): update aws-sdk-js-v3 monorepo to ^3.606.0 #502

name: Test and Release
on: push
permissions:
contents: write
issues: write
id-token: write
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "npm"
- name: Authenticate with NPM registry
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- name: Install dependencies
run: npm ci --no-audit
- name: Check typescript
run: npx tsc
- name: Check source code with eslint
run: npx eslint .
- name: Check if source code is properly formatted
run: npx prettier -c ./
- run: npm test
- 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/bifravst/ci
# secrets.AWS_ACCOUNT_ID_CI is an organization secret
role-to-assume: |
arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID_CI }}:role/${{ github.repository_owner }}-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
- name: End-to-end tests
run: npx tsx --test e2e.spec.ts
- name: Destroy
run: ./cli.js destroy `jq -r '.stackName' http-api-mock.json`
- name: Semantic release
run: npx semantic-release