dcl-catalyst-client 14.0.9 → 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.
- package/.github/dependabot.yml +2 -0
- package/.github/workflows/build-and-publish.yml +84 -0
- package/coverage/clover.xml +298 -274
- package/coverage/coverage-final.json +14 -13
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +29 -29
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov.info +532 -476
- package/dist/CatalystClient.d.ts +5 -5
- package/dist/CatalystClient.js +3 -6
- package/dist/CatalystClient.js.map +1 -1
- package/dist/ContentAPI.d.ts +3 -4
- package/dist/ContentClient.d.ts +3 -3
- package/dist/ContentClient.js +22 -28
- package/dist/ContentClient.js.map +1 -1
- package/dist/LambdasAPI.d.ts +8 -8
- package/dist/LambdasClient.d.ts +4 -3
- package/dist/LambdasClient.js +20 -22
- package/dist/LambdasClient.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/CatalystClientBuilder.js +1 -1
- package/dist/utils/DeploymentBuilder.d.ts +2 -2
- package/dist/utils/DeploymentBuilder.js +5 -1
- package/dist/utils/DeploymentBuilder.js.map +1 -1
- package/dist/utils/Helper.d.ts +8 -7
- package/dist/utils/Helper.js +19 -7
- package/dist/utils/Helper.js.map +1 -1
- package/dist/utils/catalystList.d.ts +1 -1
- package/dist/utils/catalystList.js +1 -1
- package/dist/utils/fetcher.d.ts +11 -0
- package/dist/utils/fetcher.js +57 -0
- package/dist/utils/fetcher.js.map +1 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +7 -4
- package/dist/utils/index.js.map +1 -1
- package/package.json +6 -4
- package/.github/workflows/build-and-test.yml +0 -30
- package/.github/workflows/release-and-publish.yml +0 -59
package/.github/dependabot.yml
CHANGED
|
@@ -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
|