zh-web-sdk 2.9.0 → 2.10.3

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.
@@ -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"
@@ -0,0 +1,13 @@
1
+ name: "Reusable NPM Publish"
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "*"
7
+
8
+ jobs:
9
+ from_reusable:
10
+ uses: seedcx/composite-actions/.github/workflows/rw-npm-publish-public.yml@main
11
+ secrets: inherit
12
+ with:
13
+ NODE_VERSION: "16.13.0"
@@ -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
- push-to-main:
14
- if: github.event.pusher.name != 'seedcx-deploy'
15
- env:
16
- NODE_VERSION: '16.13.0'
17
- BUMP: ${{ contains(github.event.head_commit.message, 'BREAKING CHANGE') && 'major' || contains(github.event.head_commit.message, 'feat') && 'minor' || 'patch' }}
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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zh-web-sdk",
3
- "version": "2.9.0",
3
+ "version": "2.10.3",
4
4
  "private": false,
5
5
  "description": "ZeroHash Web SDK",
6
6
  "homepage": "https://github.com/seedcx/zh-web-sdk",
@@ -1,57 +0,0 @@
1
- name: "Release"
2
-
3
- on:
4
- push:
5
- tags:
6
- - "*"
7
-
8
- jobs:
9
- release:
10
- name: Release
11
- env:
12
- NODE_VERSION: '16.13.0'
13
- runs-on: ["builder","x64","linux","self-hosted"]
14
- steps:
15
- - uses: actions/checkout@v3
16
-
17
- - uses: actions/setup-node@v3
18
- with:
19
- node-version: ${{ env.NODE_VERSION }}
20
- cache: 'npm'
21
-
22
- - name: NPM CI
23
- run: npm ci
24
-
25
- - name: NPM Build
26
- run: echo "BUILD=$(npm run build:zip | grep Zipping | awk '{print $3}') " >> $GITHUB_OUTPUT
27
- id: build
28
-
29
- - name: Create a GitHub release
30
- uses: ncipollo/release-action@v1
31
- with:
32
- tag: ${{ github.ref_name }}
33
- name: Release ${{ github.ref_name }}
34
- body: |
35
- ${{ github.ref.outputs.changelog }}
36
- generateReleaseNotes: true
37
- token: ${{ secrets.GITHUB_TOKEN }}
38
- artifacts: |
39
- ${{ steps.build.outputs.BUILD }}
40
-
41
- publish:
42
- name: Publish
43
- env:
44
- NODE_VERSION: '16.13.0'
45
- runs-on: ["builder","x64","linux","self-hosted"]
46
- steps:
47
- - uses: actions/checkout@v3
48
- - uses: actions/setup-node@v3
49
- with:
50
- node-version: ${{ env.NODE_VERSION }}
51
- cache: 'npm'
52
- registry-url: 'https://registry.npmjs.org'
53
- - name: NPM CI
54
- run: npm ci
55
- - run: npm publish
56
- env:
57
- NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}