-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (40 loc) · 935 Bytes
/
npm-release.yaml
File metadata and controls
54 lines (40 loc) · 935 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
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
name: npm-release
on:
workflow_dispatch:
release:
types:
- published
permissions:
contents: read
id-token: write
concurrency:
group: npm-release-${{ github.ref }}
cancel-in-progress: false
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Vite+
uses: voidzero-dev/setup-vp@v1
with:
node-version: "24"
cache: true
run-install: false
- name: Install dependencies
run: vp install
- name: Type check
run: vp run typecheck
- name: Lint
run: vp lint
- name: Test
run: vp test
- name: Build package
run: vp pack
- name: Verify published contents
run: npm pack --dry-run
- name: Upgrade npm
run: npm i -g npm@latest
- name: Publish to NPM
run: npm publish