Skip to content

dep_update_prod

dep_update_prod #427

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Designer CI
on:
push:
branches: ["main"]
repository_dispatch:
types: [dep_update_prod]
workflow_dispatch:
jobs:
build-prod:
runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [16.x, 18.x, 20.x]
# # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
with:
ref: "main"
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "npm"
- name: Install Serverless Framework
run: npm install -g [email protected]
- name: Serverless AWS authentication
run: sls config credentials --provider aws --key ${{ secrets.AWS_KEY }} --secret ${{ secrets.AWS_SECRET }}
- name: Configure AWS credentials
uses: Fooji/create-aws-profile-action@v1
with:
profile: AbstractPlayDev
region: us-east-1
key: ${{ secrets.AWS_KEY}}
secret: ${{ secrets.AWS_SECRET}}
- name: Install deps
run: echo "@abstractplay:registry=https://npm.pkg.github.com/" >> .npmrc
- run: echo "//npm.pkg.github.com/:_authToken=${{secrets.PAT_READ_PACKAGES}}" >> .npmrc
- run: npm i
- run: npm i @abstractplay/renderer
- run: npm list @abstractplay/renderer
- run: npm test --if-present
- run: npm run full
- name: Create CloudFront invalidation
uses: josemando/aws-cloudfront-create-invalidation@v1
with:
distribution-id: EX4SLWV2O8U6O
paths: /*