-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add visibility controls, changelog, and better release process (#43)
* Add some more comments * Add a fuller example * Explicitly export webview options * Add setVisibility, isVisible * Update publish process to tag release * Add changelog * Bump to 0.0.7/0.1.6
- Loading branch information
Showing
11 changed files
with
221 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,37 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
contents: write | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get current version | ||
id: current_version | ||
run: echo "version=$(grep '"version"' deno.json | awk '{ print $2 }' | sed 's/[",]//g')" >> $GITHUB_OUTPUT | ||
|
||
- name: Get published version | ||
id: published_version | ||
run: echo "version=$(npx jsr show @justbe/webview | head -n 2 | xargs | awk '{print $4}')" >> $GITHUB_OUTPUT | ||
|
||
- name: Publish package | ||
if: ${{ steps.current_version.outputs.version != steps.published_version.outputs.version }} | ||
run: npx jsr publish | ||
env: | ||
LATEST_VERSION: ${{ env.latest_version }} | ||
|
||
- name: Get latest version | ||
if: ${{ steps.current_version.outputs.version != steps.published_version.outputs.version }} | ||
id: latest_version | ||
run: echo "version=$(npx jsr show @justbe/webview | head -n 2 | xargs | awk '{print $4}')" >> $GITHUB_OUTPUT | ||
|
||
- name: Tag and push if versions differ | ||
if: ${{ steps.current_version.outputs.version != steps.published_version.outputs.version && steps.latest_version.outputs.version != steps.published_version.outputs.version }} | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git tag -a v${{ steps.latest_version.outputs.version }} -m "Release ${{ steps.latest_version.outputs.version }}" | ||
git push origin v${{ steps.latest_version.outputs.version }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Changelog | ||
|
||
## 0.0.7 (binary 0.1.6) -- 2024-09-23 | ||
|
||
- Added this changelog | ||
- Add the ability to show and hide the webview window via `.setVisibility(true/false)` | ||
- Added the ability to check if the webview window is visible via `.isVisible()` | ||
|
||
## 0.0.6 (binary 0.1.5) -- 2024-09-23 | ||
|
||
- Fixed a bug where `.on` and `.once` weren't firing for the webview's lifecycle events | ||
|
||
## 0.0.5 (binary 0.1.5) -- 2024-09-23 | ||
|
||
- Improved type generation to avoid publishing slow types to JSR | ||
|
||
## 0.0.4 (binary 0.1.5) -- 2024-09-22 | ||
|
||
- Added examples, doc comments to code |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "deno-webview" | ||
version = "0.1.5" | ||
version = "0.1.6" | ||
edition = "2021" | ||
|
||
[profile.release] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.