barcode-detector 1.0.1 → 1.0.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.
- package/.github/workflows/semantic-release.yml +27 -1
- package/README.md +1 -1
- package/dist/barcode-detector.js +1 -1
- package/dist/barcode-detector.js.map +1 -1
- package/dist/barcode-detector.module.js +1 -1
- package/dist/barcode-detector.module.js.map +1 -1
- package/dist/barcode-detector.umd.js +1 -1
- package/dist/barcode-detector.umd.js.map +1 -1
- package/index.html +33 -10
- package/package.json +2 -2
- package/src/worker/worker.ts +1 -1
- package/dist/barcode-detector.modern.js +0 -2
- package/dist/barcode-detector.modern.js.map +0 -1
|
@@ -1,11 +1,27 @@
|
|
|
1
|
-
name: Release
|
|
1
|
+
name: Release & Deploy Demo
|
|
2
2
|
on:
|
|
3
3
|
push:
|
|
4
4
|
branches:
|
|
5
5
|
- master
|
|
6
|
+
|
|
7
|
+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
|
8
|
+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
|
9
|
+
concurrency:
|
|
10
|
+
group: "pages"
|
|
11
|
+
cancel-in-progress: false
|
|
12
|
+
|
|
13
|
+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
14
|
+
permissions:
|
|
15
|
+
contents: write
|
|
16
|
+
pages: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
6
19
|
jobs:
|
|
7
20
|
release:
|
|
8
21
|
name: Release
|
|
22
|
+
environment:
|
|
23
|
+
name: github-pages
|
|
24
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
9
25
|
runs-on: ubuntu-latest
|
|
10
26
|
steps:
|
|
11
27
|
- name: Checkout
|
|
@@ -20,6 +36,16 @@ jobs:
|
|
|
20
36
|
run: npm ci
|
|
21
37
|
- name: Build
|
|
22
38
|
run: ./src/worker/build.sh && npm run build
|
|
39
|
+
- name: Setup Pages
|
|
40
|
+
uses: actions/configure-pages@v3
|
|
41
|
+
- name: Upload artifact
|
|
42
|
+
uses: actions/upload-pages-artifact@v1
|
|
43
|
+
with:
|
|
44
|
+
# Upload entire repository
|
|
45
|
+
path: '.'
|
|
46
|
+
- name: Deploy to GitHub Pages
|
|
47
|
+
id: deployment
|
|
48
|
+
uses: actions/deploy-pages@v2
|
|
23
49
|
- name: Release
|
|
24
50
|
env:
|
|
25
51
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ Spec compliant polyfill of the [Barcode Detection API](https://wicg.github.io/sh
|
|
|
3
3
|
It can be used for barcode/QR-code recognition in images from various kinds of
|
|
4
4
|
sources including `<canvas>`, `<img>`, `<image>` (inside SVGs), `<video>`, `File`, `Blob`, `ImageData`, `ImageBitmap`, `OffscreenCanvas`.
|
|
5
5
|
|
|
6
|
-
[
|
|
6
|
+
[simple demo](https://gruhn.github.io/barcode-detector/index.html)
|
|
7
7
|
|
|
8
8
|
Design goals:
|
|
9
9
|
* spec compliance
|