Fix compilation error (#136) #101
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: 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/*' |