-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.37 KB
/
release.yml
File metadata and controls
55 lines (43 loc) · 1.37 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Publish to npm via OIDC trusted publishing (required).
# Configure at https://www.npmjs.com/package/n8n-nodes-halopsacomplete → Settings → Publishing access → GitHub Actions.
name: Release
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.19.0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: pnpm
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Supply chain check
run: pnpm run audit:supply-chain
- name: pnpm audit (high severity and above)
run: pnpm audit --audit-level=high
- name: OSV vulnerability scan (lockfile)
uses: google/osv-scanner-action/osv-scanner-action@v2.3.3
with:
scan-args: |-
--lockfile=pnpm-lock.yaml
- name: Build
run: pnpm run build
- name: Lint (prepublish rules)
run: pnpm exec eslint -c .eslintrc.prepublish.js nodes credentials package.json
- name: Publish to npm
run: npm publish --provenance --access public