Skip to content

Commit

Permalink
bump demo for tes
Browse files Browse the repository at this point in the history
  • Loading branch information
vkruglikov committed Jan 6, 2025
1 parent 0a477ca commit 3dcffa3
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/compare-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
run: |
CURRENT_VERSION=$(jq -r '.version' current_package.json)
PREVIOUS_VERSION=$(jq -r '.version' previous_package.json)
HAS_CHANGED="false"
HAS_CHANGED=false
echo "Current version: $CURRENT_VERSION"
echo "Previous version: $PREVIOUS_VERSION"
if [ "$CURRENT_VERSION" != "$PREVIOUS_VERSION" ]; then
HAS_CHANGED="true"
HAS_CHANGED=true
fi
echo "has_changed=HAS_CHANGED" >> $GITHUB_ENV
echo "has_changed=$HAS_CHANGED" >> $GITHUB_OUTPUT
3 changes: 0 additions & 3 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
pages: write
id-token: write
steps:
- run: |
echo ${{ needs.compare-version.outputs.has_changed }}
exit 1
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/install-npm-deps
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/deploy-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ jobs:
contents: write

steps:
- run: |
echo ${{ needs.compare-version.outputs.has_changed }}
exit 1
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/install-npm-deps
Expand All @@ -35,12 +31,19 @@ jobs:
zip -r dist.zip ./packages/extension/dist
tar -czf dist.tar.gz ./packages/extension/dist
- name: Release
- name: Delete existing release
run: |
gh release delete @msw-devtools/extension@latest --yes || true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create New Release
uses: softprops/action-gh-release@v2
with:
files: |
dist.zip
dist.tar.gz
body_path: packages/extension/CHANGELOG.md
make_latest: "true"
name: "@msw-devtools/extension"
tag_name: "@msw-devtools/extension@latest"
2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@msw-devtools/demo",
"version": "0.0.2",
"version": "0.0.3",
"private": true,
"author": "Valentin Kruglikov",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @msw-devtools/extension

## 0.1.4

### Patch Changes

- Init changelog
2 changes: 1 addition & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@msw-devtools/extension",
"version": "0.1.3",
"version": "0.1.4",
"description": "MSW Devtools Extension",
"private": true,
"license": "MIT",
Expand Down

0 comments on commit 3dcffa3

Please sign in to comment.