From 2c948cdef02c21b925aaac112aa7fdd6f1adc4f0 Mon Sep 17 00:00:00 2001 From: Pornchai Date: Wed, 25 Dec 2024 16:28:42 +0700 Subject: [PATCH] fix: Add before run npm publish step --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cda1e4f..4ea0190 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,10 @@ ---- name: Release on: push: branches: - main - + jobs: build: runs-on: ubuntu-latest @@ -22,11 +21,12 @@ jobs: cache: 'yarn' - name: Install dependencies run: yarn - - run: yarn build + - run: yarn build # Build step release: name: Semantic Release runs-on: ubuntu-latest + needs: build # This ensures 'release' job waits for 'build' to finish first strategy: matrix: node-version: [20.x]