dcl-catalyst-client 14.0.8 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/.github/dependabot.yml +2 -0
  2. package/.github/workflows/build-and-publish.yml +84 -0
  3. package/coverage/clover.xml +298 -274
  4. package/coverage/coverage-final.json +14 -13
  5. package/coverage/lcov-report/favicon.png +0 -0
  6. package/coverage/lcov-report/index.html +29 -29
  7. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  8. package/coverage/lcov.info +532 -476
  9. package/dist/CatalystClient.d.ts +5 -5
  10. package/dist/CatalystClient.js +3 -6
  11. package/dist/CatalystClient.js.map +1 -1
  12. package/dist/ContentAPI.d.ts +3 -4
  13. package/dist/ContentClient.d.ts +3 -3
  14. package/dist/ContentClient.js +22 -28
  15. package/dist/ContentClient.js.map +1 -1
  16. package/dist/LambdasAPI.d.ts +8 -8
  17. package/dist/LambdasClient.d.ts +4 -3
  18. package/dist/LambdasClient.js +20 -22
  19. package/dist/LambdasClient.js.map +1 -1
  20. package/dist/index.js +5 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/utils/CatalystClientBuilder.js +1 -1
  23. package/dist/utils/DeploymentBuilder.d.ts +2 -2
  24. package/dist/utils/DeploymentBuilder.js +5 -1
  25. package/dist/utils/DeploymentBuilder.js.map +1 -1
  26. package/dist/utils/Helper.d.ts +8 -7
  27. package/dist/utils/Helper.js +19 -7
  28. package/dist/utils/Helper.js.map +1 -1
  29. package/dist/utils/catalystList.d.ts +1 -1
  30. package/dist/utils/catalystList.js +1 -1
  31. package/dist/utils/fetcher.d.ts +11 -0
  32. package/dist/utils/fetcher.js +57 -0
  33. package/dist/utils/fetcher.js.map +1 -0
  34. package/dist/utils/index.d.ts +2 -1
  35. package/dist/utils/index.js +7 -4
  36. package/dist/utils/index.js.map +1 -1
  37. package/package.json +6 -4
  38. package/.github/workflows/build-and-test.yml +0 -30
  39. package/.github/workflows/release-and-publish.yml +0 -59
@@ -13,3 +13,5 @@ updates:
13
13
  - dependency-name: "@well-known-components/*"
14
14
  - dependency-name: "dcl-*"
15
15
  versioning-strategy: auto
16
+ commit-message:
17
+ prefix: "chore: "
@@ -0,0 +1,84 @@
1
+ on:
2
+ push:
3
+ branches:
4
+ - main
5
+ pull_request:
6
+ release:
7
+ types:
8
+ - created
9
+
10
+ name: build-deploy
11
+ jobs:
12
+ check_and_build:
13
+ runs-on: ubuntu-latest
14
+ outputs:
15
+ s3_bucket_key: ${{ steps.publish_package.outputs.s3-bucket-key }}
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: install
19
+ run: yarn install --frozen-lockfile
20
+ - name: build
21
+ run: yarn build
22
+ - name: test
23
+ run: yarn test
24
+ - name: validate
25
+ run: yarn lint:check
26
+ - name: publish packages
27
+ uses: menduz/oddish-action@master
28
+ id: publish_package
29
+ with:
30
+ registry-url: 'https://registry.npmjs.org'
31
+ access: public
32
+ ## use action runId instead of current date to generate snapshot numbers
33
+ deterministic-snapshot: true
34
+
35
+ ## publish every package to s3
36
+ s3-bucket: ${{ secrets.SDK_TEAM_S3_BUCKET }}
37
+ s3-bucket-key-prefix: '@dcl/${{ github.event.repository_name }}/branch/${{ steps.myref.outputs.branch }}'
38
+
39
+ ## inform gitlab after publishing to proceed with CDN propagation
40
+ gitlab-token: ${{ secrets.GITLAB_TOKEN }}
41
+ gitlab-pipeline-url: ${{ secrets.GITLAB_URL }}
42
+ env:
43
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44
+ AWS_DEFAULT_REGION: us-east-1
45
+ AWS_ACCESS_KEY_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
46
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.SDK_TEAM_AWS_SECRET }}
47
+
48
+ notify_deployment:
49
+ needs: [check_and_build]
50
+ if: ${{ github.event.pull_request.number }}
51
+ runs-on: ubuntu-latest
52
+ name: Deployment Notification
53
+ steps:
54
+ - name: Find Comment
55
+ uses: peter-evans/find-comment@v1
56
+ id: fc
57
+ with:
58
+ issue-number: ${{ github.event.pull_request.number }}
59
+ comment-author: 'github-actions[bot]'
60
+ body-includes: Test this pull request
61
+
62
+ - name: Get the current branch name
63
+ shell: bash
64
+ run: node -e "console.log('::set-output name=branch::' + ('${{github.head_ref}}' || '$GITHUB_REF'.replace('refs/heads/','')) )"
65
+ id: myref
66
+
67
+ - name: Generate S3 URL
68
+ id: url-generator
69
+ run: |
70
+ body=$(echo ${{ secrets.SDK_TEAM_S3_BASE_URL }})/${{ needs.check_and_build.outputs.s3_bucket_key }}
71
+ echo ::set-output name=body::$body
72
+
73
+ - name: Create or update comment
74
+ uses: peter-evans/create-or-update-comment@v1
75
+ with:
76
+ comment-id: ${{ steps.fc.outputs.comment-id }}
77
+ issue-number: ${{ github.event.pull_request.number }}
78
+ body: |
79
+ # Test this pull request
80
+ - The package can be tested by running
81
+ ```bash
82
+ yarn upgrade "${{ steps.url-generator.outputs.body }}"
83
+ ```
84
+ edit-mode: replace