Skip to content

Commit

Permalink
Optimize pipeline for create-draft-release
Browse files Browse the repository at this point in the history
  • Loading branch information
rjborba committed Jan 16, 2025
1 parent 1257ec9 commit eb39d01
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/create-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit eb39d01

Please sign in to comment.