-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (39 loc) · 1.03 KB
/
Copy pathpublish.yml
File metadata and controls
52 lines (39 loc) · 1.03 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
name: Publish Package
on:
push:
branches:
- main
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: "24.x"
registry-url: "https://registry.npmjs.org"
package-manager-cache: false
- name: Set up OIDC-capable npm
run: npm install --global "npm@^11.15.0"
- name: Install dependencies
run: npm ci
- name: Typecheck
run: npm run typecheck
- name: Run tests
run: npm test
- name: Check web application
run: npm run check -w @pi-postbox/web
- name: Build packages
run: npm run build
- name: Run packaged smoke test
run: npm run smoke
- name: Inspect package contents
run: npm pack --dry-run
- name: Publish to npm
run: npm publish --access public