forked from TestSprite/testsprite-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (26 loc) · 786 Bytes
/
Copy pathrelease.yaml
File metadata and controls
26 lines (26 loc) · 786 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
name: release
on:
push:
tags: ['v*.*.*']
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # npm provenance
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
# npm trusted publishing (OIDC) requires npm >= 11.5.1; Node 22 bundles npm 10.x
- run: npm install -g npm@latest
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm run format:check
- run: npm run test:coverage
- run: npm run build
# Auth via npm trusted publishing (OIDC) — no token needed; provenance is implied
- run: npm publish --provenance --access public