Skip to content

Release

Release #63

Workflow file for this run

name: Release
on:
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Set Node to v16
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
yarn install
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install infra dependencies
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
yarn install
working-directory: ./infra
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build
run: yarn build
- name: Build infra
working-directory: infra/
run: yarn build
env:
AWS_ACCOUNT: ${{ secrets.AWS_ACCOUNT }}
- name: Install cdk globally
run: yarn global add aws-cdk
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
aws-region: us-east-1
- name: Deploy package
working-directory: infra/
run: cdk deploy --require-approval never
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}