Skip to content

Commit 762d729

Browse files
Update version to 3.0.4-beta-202510200001 and improve publish workflow
1 parent 510116c commit 762d729

File tree

16 files changed

+28
-318
lines changed

16 files changed

+28
-318
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
run: npm run build
3333

3434
- name: Publish to npm
35-
run: npm publish
35+
run: |
36+
if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then
37+
npm publish --tag beta
38+
else
39+
npm publish
40+
fi
3641
env:
3742
NODE_AUTH_TOKEN: ${{ secrets.NPM_PAT }}

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ The simplest way to include the SDK is to use either the [**jsDelivr**](https://
3131
- jsDelivr
3232

3333
```html
34-
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mrz-scanner.bundle.js"></script>
34+
<script src="https://cdn.jsdelivr.net/npm/[email protected]-beta-202510200001/dist/mrz-scanner.bundle.js"></script>
3535
```
3636

3737
- UNPKG
3838

3939
```html
40-
<script src="https://unpkg.com/[email protected]/dist/mrz-scanner.bundle.js"></script>
40+
<script src="https://unpkg.com/[email protected]-beta-202510200001/dist/mrz-scanner.bundle.js"></script>
4141
```
4242

4343
When using a framework such as **React**, **Vue** or **Angular**, we recommend adding the package as a dependency using a package manager such as **npm** or **yarn**:
4444

4545
```sh
46-
46+
npm i [email protected]-beta-202510200001 -E
4747
# or
48-
yarn add [email protected] -E
48+
yarn add [email protected]-beta-202510200001 -E
4949
```
5050

5151
> [!WARNING]
@@ -60,7 +60,7 @@ Below is the complete Hello World sample page that uses the precompiled script s
6060
<meta charset="utf-8" />
6161
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6262
<title>Dynamsoft MRZ Scanner - Hello World</title>
63-
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mrz-scanner.bundle.js"></script>
63+
<script src="https://cdn.jsdelivr.net/npm/[email protected]-beta-202510200001/dist/mrz-scanner.bundle.js"></script>
6464
</head>
6565

6666
<body>
@@ -141,7 +141,7 @@ Let's now go through the code of the Hello World sample and understand the purpo
141141
<meta charset="utf-8" />
142142
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
143143
<title>Dynamsoft MRZ Scanner - Hello World</title>
144-
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mrz-scanner.bundle.js"></script>
144+
<script src="https://cdn.jsdelivr.net/npm/[email protected]-beta-202510200001/dist/mrz-scanner.bundle.js"></script>
145145
</head>
146146

147147
<body>

dist/mrz-scanner.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mrz-scanner.bundle.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/mrz-scanner.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mrz-scanner.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/mrz-scanner.no-content-bundle.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 297 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dynamsoft-mrz-scanner",
3-
"version": "3.0.4",
3+
"version": "3.0.4-beta-202510200001",
44
"description": "Dynamsoft MRZ Scanner JavaScript Edition is a ready-to-use SDK for web applications that accurately recognizes and parses Machine-Readable Zones on Machine-Readable Travel Documents.",
55
"files": [
66
"/dist",

samples/demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Dynamsoft MRZ Scanner</title>
77
<link rel="stylesheet" href="./css/index.css" />
8-
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mrz-scanner.bundle.js"></script> -->
8+
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]-beta-202510200001/dist/mrz-scanner.bundle.js"></script> -->
99
<!-- To use locally: -->
1010
<script src="../../dist/mrz-scanner.bundle.js"></script>
1111
</head>

0 commit comments

Comments
 (0)