-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 810 Bytes
/
Copy pathpublish.yml
File metadata and controls
29 lines (27 loc) · 810 Bytes
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
name: Publish
on:
push:
tags: ["v*"]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm test
- run: pnpm --filter @ottersight/scanner publish --access public --provenance --no-git-checks
- run: pnpm --filter @ottersight/cli publish --access public --provenance --no-git-checks
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true