From 618ba73966b537ad530fd2b221a581b091d79cec Mon Sep 17 00:00:00 2001 From: Andres Gonzalez <17816698+agonzalezv@users.noreply.github.com> Date: Wed, 12 Nov 2025 11:26:10 +1300 Subject: [PATCH 1/6] fix: unify publish + release workflows --- .github/workflows/publish.yaml | 28 ++++++++++++++++++--- .github/workflows/release-dry-run.yaml | 34 -------------------------- 2 files changed, 24 insertions(+), 38 deletions(-) delete mode 100644 .github/workflows/release-dry-run.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index fb37c17..7bbe94e 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -2,9 +2,6 @@ name: publish on: workflow_dispatch: - push: - branches: - - main jobs: publish_gh_packages: @@ -33,6 +30,29 @@ jobs: run: pnpm install --frozen-lockfile - name: pnpm publish - run: pnpm publish --access restricted --publish-branch main --tag next + run: pnpm publish --access restricted env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + release: + needs: publish_gh_packages + runs-on: ubuntu-latest + + permissions: + contents: write # publish a GitHub release + issues: write # comment on released issues + pull-requests: write # comment on released pull requests + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v4 + with: + node-version: "lts/*" + + - name: semantic-release + run: npx semantic-release@24 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-dry-run.yaml b/.github/workflows/release-dry-run.yaml deleted file mode 100644 index c82fae1..0000000 --- a/.github/workflows/release-dry-run.yaml +++ /dev/null @@ -1,34 +0,0 @@ -name: release --dry-run - -on: - workflow_dispatch: - push: - branches: - - main - - next - - beta - - alpha - -jobs: - release: - name: "release --dry-run" - runs-on: ubuntu-latest - - permissions: - contents: write # publish a GitHub release - issues: write # comment on released issues - pull-requests: write # comment on released pull requests - - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: actions/setup-node@v4 - with: - node-version: "lts/*" - - - name: semantic-release - run: npx semantic-release@24 --dry-run - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From b0babe28153f7d5838ff176935548d3b123afca6 Mon Sep 17 00:00:00 2001 From: Andres Gonzalez <17816698+agonzalezv@users.noreply.github.com> Date: Wed, 12 Nov 2025 11:41:24 +1300 Subject: [PATCH 2/6] 2.3.0 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e405566..0ca04ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metasig/tauri-plugin-keystore-api", - "version": "2.2.0", + "version": "2.3.0", "author": "0x330a", "description": "Interact with the device-native key storage (Android Keystore, iOS Keychain) & perform ecdh operations for generating symmetric keys", "type": "module", @@ -36,4 +36,4 @@ "type": "git", "url": "git+https://github.com/Metasig/tauri-plugin-keystore.git" } -} \ No newline at end of file +} From 8d7f95377ddadf81bf66236898e71917deec5254 Mon Sep 17 00:00:00 2001 From: Andres Gonzalez <17816698+agonzalezv@users.noreply.github.com> Date: Wed, 12 Nov 2025 11:41:46 +1300 Subject: [PATCH 3/6] fix: add telegram bot, codeowners, PR template --- .github/CODEOWNERS | 3 +++ .github/pull_request_template.md | 25 +++++++++++++++++++++++++ .github/telegram-notification.yml | 22 ++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/pull_request_template.md create mode 100644 .github/telegram-notification.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..e7154fa --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,3 @@ +# Global owners + +* Metasig/devs diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..f302a23 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,25 @@ +# Summary + +- One-line summary of the change and why it matters. + +## Context + +- Links: issue, ticket, or related PRs. + +## Changes + +- Short bullet list of the key changes made. + +## Checklist + +- [ ] Tests added/updated +- [ ] Docs updated (if needed) + +## Risks + +- Brief note about possible risks or impact. + +## How to test + +- Short, reproducible steps to verify the change. +z \ No newline at end of file diff --git a/.github/telegram-notification.yml b/.github/telegram-notification.yml new file mode 100644 index 0000000..e05c79a --- /dev/null +++ b/.github/telegram-notification.yml @@ -0,0 +1,22 @@ +name: Telegram notification + +on: + pull_request: + types: [opened, reopened] + +jobs: + telegram-bot: + name: Telegram Bot + runs-on: ubuntu-latest + steps: + - name: Telegram Notify + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_TO }} + token: ${{ secrets.TELEGRAM_TOKEN }} + format: markdown + disable_web_page_preview: true + message: | + ${{ github.event.pull_request.draft && '📝 New draft PR' || '🔔 New PR' }} by: *${{ github.event.pull_request.user.login }}* + *${{ github.event.pull_request.title }}* + 🔍 ${{ github.event.pull_request.html_url }} From ca6e12304d3c53e9e9fcb0637ba02902bb92f949 Mon Sep 17 00:00:00 2001 From: Andres Gonzalez <17816698+agonzalezv@users.noreply.github.com> Date: Wed, 12 Nov 2025 11:43:44 +1300 Subject: [PATCH 4/6] fix: codeowners --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e7154fa..36c0da0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1,3 @@ # Global owners -* Metasig/devs +* @Metasig/devs From 22cd2b61c276b411719bcc3773146bc2c62f06d4 Mon Sep 17 00:00:00 2001 From: Andres Gonzalez <17816698+agonzalezv@users.noreply.github.com> Date: Wed, 12 Nov 2025 11:49:57 +1300 Subject: [PATCH 5/6] fix: remove plugin builds --- .github/workflows/build.yaml | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 192181d..4529130 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,28 +17,3 @@ jobs: sudo apt-get update sudo apt-get install -y libwebkit2gtk-4.1-dev - run: cargo build - - build_android: - name: build Android plugin - runs-on: ubuntu-latest - needs: cargo_build - defaults: - run: - working-directory: ./android - - steps: - - uses: actions/checkout@v4 - - run: ./gradlew build - - build_ios: - name: build iOS plugin - runs-on: ubuntu-latest - needs: cargo_build - defaults: - run: - working-directory: ./ios - - steps: - - uses: actions/checkout@v4 - - uses: swift-actions/setup-swift@v2 - - run: swift build From 72f1432ac24bfe88a007125a64b97bd2268f047d Mon Sep 17 00:00:00 2001 From: Andres Gonzalez <17816698+agonzalezv@users.noreply.github.com> Date: Wed, 12 Nov 2025 12:01:58 +1300 Subject: [PATCH 6/6] fix: move telegram notification action --- .github/{ => workflows}/telegram-notification.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/telegram-notification.yml (100%) diff --git a/.github/telegram-notification.yml b/.github/workflows/telegram-notification.yml similarity index 100% rename from .github/telegram-notification.yml rename to .github/workflows/telegram-notification.yml