Skip to content

Commit

Permalink
ci: Fix pnpm install
Browse files Browse the repository at this point in the history
  • Loading branch information
debjitbis08 committed Nov 11, 2024
1 parent 46d0ebe commit 2f562fc
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,25 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
strategy:
matrix:
node-version: [20] # Use the desired Node.js version
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v4 # Checkout the repository
- name: Install pnpm
uses: pnpm/action-setup@v4 # Use pnpm's official GitHub Action
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
version: 9 # Specify the pnpm version to use
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: "latest" # Use the latest version of Node.js
cache: "pnpm" # Cache pnpm dependencies
- name: Setup pnpm
run: corepack enable # Enable pnpm through Corepack, included in Node.js
node-version: ${{ matrix.node-version }}
cache: 'pnpm' # Enable pnpm cache
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: pnpm audit
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm exec semantic-release
run: pnpm semantic-release

0 comments on commit 2f562fc

Please sign in to comment.