forked from gajus/eslint-plugin-jsdoc
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (32 loc) · 811 Bytes
/
main.yaml
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
name: Build and release
on:
push:
branches:
- main
permissions:
# Grant Permissions to the GH Token to capture attestation information from the GH agent
id-token: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: release
steps:
- uses: pnpm/action-setup@v4
with:
version: latest
- name: setup repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- run: pnpm install
- run: pnpm build
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true