Bump @types/node from 20.5.0 to 20.5.7 in /super-mode-calculator #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload super-mode-calculator to riff raff | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
super_mode_calculator_build: | |
if: github.repository_owner == 'guardian' | |
# Required by actions-riff-raff | |
permissions: | |
id-token: write | |
contents: read | |
name: Build super-mode-calculator | |
runs-on: ubuntu-latest | |
steps: | |
- name: Env | |
run: env | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Configure AWS credentials # needed by actions-riff-raff | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }} | |
aws-region: eu-west-1 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
cache-dependency-path: ./super-mode-calculator/yarn.lock | |
node-version-file: super-mode-calculator/.nvmrc | |
- name: Yarn | |
run: | | |
yarn install | |
yarn lint | |
yarn run build | |
working-directory: ./super-mode-calculator | |
- name: Copy files to Riff Raff package | |
run: cp package.json riff-raff.yaml target | |
working-directory: ./super-mode-calculator | |
- name: Yarn install in package | |
run: yarn install --production | |
working-directory: ./super-mode-calculator/target | |
- name: Zip target directory contents (quietly) | |
run: zip -qr super-mode-calculator.zip ./* | |
working-directory: ./super-mode-calculator/target | |
- uses: guardian/actions-riff-raff@v2 | |
with: | |
projectName: Support::super-mode-calculator | |
configPath: ./super-mode-calculator/riff-raff.yaml | |
buildNumberOffset: 250 | |
contentDirectories: | | |
super-mode-calculator: | |
- ./super-mode-calculator/target/super-mode-calculator.zip | |
super-mode-calculator-cloudformation: | |
- ./super-mode-calculator/cfn.yaml |