ci: Fix pnpm install #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- master # or main | |
permissions: | |
contents: read # for checkout | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20] # Use the desired Node.js version | |
steps: | |
- uses: actions/checkout@v4 # Checkout the repository | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 # Use pnpm's official GitHub Action | |
with: | |
version: 9 # Specify the pnpm version to use | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
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 semantic-release |