zh-web-sdk 2.9.0 → 2.10.4
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/workflows/build.yaml +13 -0
- package/.github/workflows/pr.yaml +2 -1
- package/.github/workflows/publish.yaml +13 -0
- package/.github/workflows/tag.yaml +6 -47
- package/dist/hooks/__tests__/use-window-size.test.d.ts +1 -0
- package/dist/hooks/use-window-size.d.ts +4 -0
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/jest.config.js +7 -0
- package/package.json +11 -4
- package/src/hooks/__tests__/use-window-size.test.tsx +26 -0
- package/src/hooks/use-window-size.ts +19 -0
- package/src/iframe-container/AppContainer.tsx +4 -0
- package/src/styles.ts +1 -1
- package/.github/workflows/release.yaml +0 -57
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
name: "Reusable NPM Build"
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [ main, master ]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
from_reusable:
|
|
9
|
+
uses: seedcx/composite-actions/.github/workflows/rw-npm-build.yml@main
|
|
10
|
+
secrets: inherit
|
|
11
|
+
with:
|
|
12
|
+
NODE_VERSION: "16.13.0"
|
|
13
|
+
NPM_VERSION: "9"
|
|
@@ -2,54 +2,13 @@ name: 'Tag New Version'
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
# Run the action only on pushes to the main branch
|
|
6
5
|
branches:
|
|
7
6
|
- main
|
|
8
|
-
|
|
9
|
-
permissions:
|
|
10
|
-
contents: write
|
|
7
|
+
workflow_dispatch:
|
|
11
8
|
|
|
12
9
|
jobs:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
GITHUB_TOKEN: ${{ secrets.ORG_GH_TOKEN }}
|
|
19
|
-
runs-on: ["builder","x64","linux","self-hosted"]
|
|
20
|
-
steps:
|
|
21
|
-
- uses: actions/checkout@v3
|
|
22
|
-
with:
|
|
23
|
-
token: ${{ secrets.GH_TAG_TOKEN }}
|
|
24
|
-
|
|
25
|
-
- name: Import bot's GPG key for signing commits
|
|
26
|
-
id: import-gpg
|
|
27
|
-
uses: crazy-max/ghaction-import-gpg@v5
|
|
28
|
-
with:
|
|
29
|
-
gpg_private_key: ${{ secrets.SEEDCX_DEPLOY_GPG_PRIVATE_KEY }}
|
|
30
|
-
passphrase: ${{ secrets.SEEDCX_DEPLOY_GPG_PASSPHRASE }}
|
|
31
|
-
git_config_global: true
|
|
32
|
-
git_user_signingkey: true
|
|
33
|
-
git_commit_gpgsign: true
|
|
34
|
-
|
|
35
|
-
- uses: actions/setup-node@v3
|
|
36
|
-
with:
|
|
37
|
-
node-version: ${{ env.NODE_VERSION }}
|
|
38
|
-
|
|
39
|
-
# Set git config
|
|
40
|
-
- uses: nodef/git-config.action@v1.0.0
|
|
41
|
-
with:
|
|
42
|
-
credentials: auto
|
|
43
|
-
entries: |-
|
|
44
|
-
user.name = seedcx-deploy
|
|
45
|
-
user.email = 22893110+seedcx-deploy@users.noreply.github.com>
|
|
46
|
-
|
|
47
|
-
- name: Update Version
|
|
48
|
-
run: echo "VERSION=$(npm version ${{ env.BUMP }})" >> $GITHUB_OUTPUT
|
|
49
|
-
id: version
|
|
50
|
-
|
|
51
|
-
- name: Push version update
|
|
52
|
-
run: git push
|
|
53
|
-
|
|
54
|
-
- name: Push tag
|
|
55
|
-
run: git push origin ${{ steps.version.outputs.VERSION }}
|
|
10
|
+
from_reusable:
|
|
11
|
+
uses: seedcx/composite-actions/.github/workflows/rw-npm-tag.yml@main
|
|
12
|
+
secrets: inherit
|
|
13
|
+
with:
|
|
14
|
+
NODE_VERSION: "16.13.0"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|