Skip to content

fix: message

fix: message #72

Workflow file for this run

on:
push:
branches:
- main
name: 馃殌 Deploy to staging
concurrency: deploy_staging
permissions:
id-token: write # this is required for AWS https://github.com/aws-actions/configure-aws-credentials#usage
contents: read # this is required for Nx https://github.com/nrwl/nx-set-shas#permissions-in-v2
actions: read # this is required for Nx https://github.com/nrwl/nx-set-shas#permissions-in-v2
env:
CI: true
AWS_REGION: eu-west-2
defaults:
run:
shell: bash
jobs:
build_and_test_core:
runs-on: ubuntu-latest
env:
CI: true
AWS_REGION: eu-west-2
defaults:
run:
working-directory: services/core
shell: bash
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_ARN_STAGING }}
- name: Install pnpm
run: npm i -g pnpm
- name: 馃殌 Deploy core
run: npm i && npm run deploy-staging