Skip to content

Merge pull request #118 from ably/specification-coverage #380

Merge pull request #118 from ably/specification-coverage

Merge pull request #118 from ably/specification-coverage #380

Workflow file for this run

name: Assemble
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
deployments: write
id-token: write
steps:
- uses: actions/checkout@v3
- name: Read Tool Versions
id: tool-versions
run: echo "::set-output name=nodejs::$(sed -nr 's/nodejs ([0-9]+)/\1/p' .tool-versions)"
- uses: actions/setup-node@v3
with:
node-version: ${{ steps.tool-versions.outputs.nodejs }}
- name: "core: Prepare"
working-directory: core
run: |
npm ci
- name: "render: Build"
working-directory: render
run: |
npm ci
npm run build
- name: Configure AWS Credentials
# at some point AWS will release a `v2` of this action. See:
# https://github.com/aws-actions/configure-aws-credentials/issues/489#issuecomment-1278145876
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-region: eu-west-2
role-to-assume: arn:aws:iam::${{ secrets.ABLY_AWS_ACCOUNT_ID_SDK }}:role/ably-sdk-builds-features
role-session-name: "${{ github.run_id }}-${{ github.run_number }}"
- uses: ably/sdk-upload-action@v2
with:
sourcePath: render/output
githubToken: ${{ secrets.GITHUB_TOKEN }}
artifactName: matrix