From a7a0d696e6722e905667905865315cd6ab75f0e4 Mon Sep 17 00:00:00 2001 From: merlindru Date: Thu, 23 Nov 2023 18:31:29 +0100 Subject: [PATCH] packages/js: Auto-release all packages on "js-packages@*" tag --- .../release-js-passkeys-next-auth-provider.yml | 8 +++++--- .github/workflows/release-js-passkeys-sdk.yml | 2 +- packages/js/tag-and-push.sh | 12 ------------ 3 files changed, 6 insertions(+), 16 deletions(-) delete mode 100755 packages/js/tag-and-push.sh diff --git a/.github/workflows/release-js-passkeys-next-auth-provider.yml b/.github/workflows/release-js-passkeys-next-auth-provider.yml index a4b6e3f..49581e8 100644 --- a/.github/workflows/release-js-passkeys-next-auth-provider.yml +++ b/.github/workflows/release-js-passkeys-next-auth-provider.yml @@ -1,9 +1,11 @@ name: Release JS package @teamhanko/passkeys-next-auth-provider on: - push: - tags: - - "@teamhanko/passkeys-next-auth-provider@*" + workflow_run: + workflows: "Release JS package @teamhanko/passkeys-sdk" + branches: "main" + types: + - completed defaults: run: diff --git a/.github/workflows/release-js-passkeys-sdk.yml b/.github/workflows/release-js-passkeys-sdk.yml index 0267f15..5dbe6a1 100644 --- a/.github/workflows/release-js-passkeys-sdk.yml +++ b/.github/workflows/release-js-passkeys-sdk.yml @@ -3,7 +3,7 @@ name: Release JS package @teamhanko/passkeys-sdk on: push: tags: - - "@teamhanko/passkeys-sdk@*" + - "js-packages@*" defaults: run: diff --git a/packages/js/tag-and-push.sh b/packages/js/tag-and-push.sh deleted file mode 100755 index 0d594a8..0000000 --- a/packages/js/tag-and-push.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -version=$1 -if [ -z "$version" ]; then - echo "Usage: $0 " - exit 1 -fi - -git tag @teamhanko/passkeys-sdk@$version -git tag @teamhanko/passkeys-next-auth-provider@$version - -git push origin @teamhanko/passkeys-sdk@$version & git push origin @teamhanko/passkeys-next-auth-provider@$version