Skip to content

Commit

Permalink
Update release GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kucrut committed Jun 13, 2024
1 parent a978bd8 commit 9bf9a80
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,28 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
# prevents this action from running on forks
# Prevent this action from running on forks.
if: github.repository == 'kucrut/vite-for-wp'
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits.
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup PNPM
uses: pnpm/action-setup@v3

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
run_install: false
cache: "pnpm"
node-version: "20"

- name: Install dependencies
run: pnpm install --frozen-lockfile --silent
run: pnpm install --frozen-lockfile --recursive --silent --strict-peer-dependencies

- id: get_version
shell: bash
Expand Down

0 comments on commit 9bf9a80

Please sign in to comment.