-
-
Notifications
You must be signed in to change notification settings - Fork 42
40 lines (38 loc) · 1.3 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Release
on:
push:
branches:
- master # or main
permissions:
contents: write # for checkout
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:
- 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