From eb39d0190dfada45815dcd87b25e6994b6c7e4b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Jos=C3=A9=20Borba=20Fernandes?= Date: Thu, 16 Jan 2025 02:16:10 -0300 Subject: [PATCH] Optimize pipeline for create-draft-release --- .github/workflows/create-draft-release.yml | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/.github/workflows/create-draft-release.yml b/.github/workflows/create-draft-release.yml index 0f05185d..bd50a605 100644 --- a/.github/workflows/create-draft-release.yml +++ b/.github/workflows/create-draft-release.yml @@ -22,22 +22,13 @@ jobs: outputs: release: ${{ steps.prerelease.outputs.release }} steps: - # Checkout the repository - - name: Checkout code + - name: Checkout Repository uses: actions/checkout@v3 - - - name: Read Node.js version from .nvmrc - id: node_version - run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV - - - name: Set up Node.js - uses: actions/setup-node@v3 with: - node-version: ${{ env.NODE_VERSION }} + fetch-depth: 0 - # Fetch tags to determine the latest version - - name: Fetch all tags - run: git fetch --tags + - name: Setup Environment + uses: ./.github/actions/setup - name: Calculate next version id: next_version @@ -90,11 +81,6 @@ jobs: fi done - - uses: pnpm/action-setup@v4 - - - name: Install dependencies - run: pnpm install - - name: Build And Test id: build-and-test run: |