diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..36c0da0 --- /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/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 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 }} diff --git a/.github/workflows/telegram-notification.yml b/.github/workflows/telegram-notification.yml new file mode 100644 index 0000000..e05c79a --- /dev/null +++ b/.github/workflows/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 }} 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 +}