dcl-catalyst-client 15.0.0 → 15.0.1
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.
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
name: build and publish
|
|
2
|
+
|
|
1
3
|
on:
|
|
2
4
|
push:
|
|
3
5
|
branches:
|
|
@@ -7,78 +9,15 @@ on:
|
|
|
7
9
|
types:
|
|
8
10
|
- created
|
|
9
11
|
|
|
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
12
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
|
13
|
+
jobs:
|
|
14
|
+
build-publish:
|
|
15
|
+
uses: decentraland/platform-actions/.github/workflows/libs-build-and-publish.yml@main
|
|
16
|
+
secrets:
|
|
17
|
+
SDK_TEAM_S3_BUCKET: ${{ secrets.SDK_TEAM_S3_BUCKET }}
|
|
18
|
+
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
|
|
19
|
+
GITLAB_URL: ${{ secrets.GITLAB_URL }}
|
|
20
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
21
|
+
SDK_TEAM_AWS_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
|
|
22
|
+
SDK_TEAM_AWS_SECRET: ${{ secrets.SDK_TEAM_AWS_SECRET }}
|
|
23
|
+
SDK_TEAM_S3_BASE_URL: ${{ secrets.SDK_TEAM_S3_BASE_URL }}
|
package/coverage/clover.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1681484153611" clover="3.2.0">
|
|
3
|
+
<project timestamp="1681484153611" name="All files">
|
|
4
4
|
<metrics statements="482" coveredstatements="388" conditionals="200" coveredconditionals="120" methods="141" coveredmethods="100" elements="823" coveredelements="608" complexity="0" loc="482" ncloc="482" packages="3" files="15" classes="15"/>
|
|
5
5
|
<package name="src">
|
|
6
6
|
<metrics statements="135" coveredstatements="104" conditionals="54" coveredconditionals="35" methods="58" coveredmethods="31"/>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at 2023-
|
|
134
|
+
at 2023-04-14T14:55:53.580Z
|
|
135
135
|
</div>
|
|
136
136
|
<script src="prettify.js"></script>
|
|
137
137
|
<script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dcl-catalyst-client",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.1",
|
|
4
4
|
"description": "A client to query and perform changes on Decentraland's catalyst servers",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"trailingComma": "none",
|
|
77
77
|
"tabWidth": 2
|
|
78
78
|
},
|
|
79
|
-
"commit": "
|
|
79
|
+
"commit": "2469e8c8fecc0740067968f1b37231cc52cff636"
|
|
80
80
|
}
|