From c7f3f15ce5fb86fc99cc2f2efaa3b2ebba8e7ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pereira?= <77340776+joaopereira12@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:32:44 +0100 Subject: [PATCH] feat: workflow release file (#88) --- .github/workflows/docker.yml | 3 +-- .github/workflows/npm-publish.yml | 3 +-- .github/workflows/release.yml | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index cda67006..bd125f0f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,7 +1,6 @@ name: Build Docker Image on: - release: - types: [published] + workflow_call: permissions: packages: write env: diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 7541c72b..331594dd 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,7 +1,6 @@ name: Publish Package to npmjs on: - release: - types: [published] + workflow_call: jobs: publish-npm: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..4f361abc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,14 @@ +name: Workflow - release +on: + release: + types: [published] +jobs: + npm_publish: + name: Publish packages to npmjs + uses: ./.github/workflows/npm-publish.yml + + build_docker_images: + name: Build Docker Images + needs: + - npm_publish + uses: ./.github/workflows/docker.yml \ No newline at end of file