diff --git a/.github/badges/.keep b/.github/badges/.keep
new file mode 100644
index 0000000..e69de29
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 688a1e2..bcce806 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -6,9 +6,6 @@ on:
jobs:
validation:
- concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
name: Validation and Build
runs-on: ubuntu-latest
steps:
diff --git a/.github/workflows/test-bages.yml b/.github/workflows/test-bages.yml
new file mode 100644
index 0000000..09af203
--- /dev/null
+++ b/.github/workflows/test-bages.yml
@@ -0,0 +1,32 @@
+name: Badges
+
+on:
+ push:
+ branches: ['master']
+
+jobs:
+ badges:
+ name: Validation and Build
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Update badges
+ run: |
+ PACKAGE_VERSION=$(jq -r '.version' packages/extension/package.json)
+ FORMATTED_DATE=$(date +"%d.%m.%Y")
+
+ echo $PACKAGE_VERSION
+ echo $TIMESTAMP
+
+ curl -o .github/badges/extension-version.svg "https://img.shields.io/badge/repository_extension_version-v$PACKAGE_VERSION-orange"
+
+ if ! git diff --quiet -- .github/badges/; then
+ git config --local user.name "github-actions[bot]"
+ git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ git add .github/badges/
+ git commit -m "Update extension version badge to $PACKAGE_VERSION"
+ git push
+ else
+ echo "No changes in the badges directory."
+ fi
\ No newline at end of file
diff --git a/README.md b/README.md
index f2dc1bc..05b1b66 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,11 @@
-
-
+
+
+
+
+
+
Mock Service Worker DevTools Extension
@@ -9,6 +13,7 @@
![Build Check](https://github.com/vkruglikov/msw-devtools-extension/actions/workflows/deploy.yml/badge.svg)
[![npm version](https://img.shields.io/npm/v/@msw-devtools/connect.svg)](https://www.npmjs.com/package/@msw-devtools/connect)
[![Chrome Web Store](https://img.shields.io/chrome-web-store/v/jkclaelcdjjledfendcippjbhngkhkpm.svg)](https://chrome.google.com/webstore/detail/jkclaelcdjjledfendcippjbhngkhkpm)
+[![Repository Build version](./.github/badges/extension-version.svg)](https://github.com/vkruglikov/msw-devtools-extension/releases/tag/%40msw-devtools%2Fextension%40latest)
> **⚠️ WARNING: Pre-release Version**
> In this pre-release version, every update clears the configuration storage!
@@ -72,15 +77,28 @@ setupWorker(...handlers).start({
})
```
-### Install Chrome Extension
+## Install Chrome Extension
-Chrome Extension is not yet published to Chrome Web Store, because it's in waiting for review.
+### Repository build
-[![Chrome Web Store](https://img.shields.io/chrome-web-store/v/jkclaelcdjjledfendcippjbhngkhkpm.svg)](https://chrome.google.com/webstore/detail/jkclaelcdjjledfendcippjbhngkhkpm)
+[![Repository Build version](./.github/badges/extension-version.svg)](https://github.com/vkruglikov/msw-devtools-extension/releases/tag/%40msw-devtools%2Fextension%40latest)
+
+You can install it downloading the build and [loading it as an unpacked extension](./packages/extension/README.md).
+
+> **⚠️ WARNING**
+> If you chose to install the extension from the repository, you will need install `@msw-devtools/connect` with `--save-exact` flag to avoid version mismatch.
-You can only install it downloading the build and [loading it as an unpacked extension](./packages/extension/README.md).
+### Chrome Web Store
-[![Download Chrome Extension](https://img.shields.io/badge/download-chrome_extension_dist-ff6a33)](https://github.com/vkruglikov/msw-devtools-extension/releases/tag/%40msw-devtools%2Fextension%40latest)
+[![Chrome Web Store](https://img.shields.io/chrome-web-store/v/jkclaelcdjjledfendcippjbhngkhkpm.svg?label=extension+version)](https://chrome.google.com/webstore/detail/jkclaelcdjjledfendcippjbhngkhkpm)
+![Chrome Web Store Last Updated](https://img.shields.io/chrome-web-store/last-updated/jkclaelcdjjledfendcippjbhngkhkpm?label=last+release&color=green)
+
+> **⚠️ WARNING**
+> Chrome Web Store version can be outdated because of the review process.
+>
+> If you want to install from the Chrome Web Store, you need to check the latest version in the repository and compare it with the Chrome Web Store version.
+>
+> We recommend using the latest build from the repository.
### Upload JSON Config to extension
@@ -88,7 +106,9 @@ You can only install it downloading the build and [loading it as an unpacked ext
### See the demo
-[@msw-devtools/demo](https://vkruglikov.github.io/msw-devtools-extension/)
+At this page we have installed msw and initialized with the `createResponseResolver` function from `@msw-devtools/connect`.
+
+[msw-devtools.com](https://vkruglikov.github.io/msw-devtools-extension/)
## Roadmap Features 🚧