Skip to content

Fix compilation error (#136) #101

Fix compilation error (#136)

Fix compilation error (#136) #101

Workflow file for this run

name: Swim TypeScript SDK
on:
push:
branches:
- main
paths:
- 'swim-js/**'
workflow_dispatch:
defaults:
run:
working-directory: swim-js
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: |
npm install
- name: Bootstrap build script
run: |
npm run bootstrap
- name: Compile SDK
run: |
npx swim-build
#- name: Generate API docs
# run: |
# npx swim-build doc -p toolkit
#- name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
# aws-access-key-id: ${{ secrets.AWS_DOCS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_DOCS_SECRET_ACCESS_KEY }}
# aws-region: us-west-1
#- name: Publish latest API docs
# run: |
# aws s3 sync @swim/toolkit/doc s3://docs.swimos.org/js/4.x
# aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DOCS_CLOUDFRONT_DISTRIBUTION_ID }} --paths '/js/4.x/*'