-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (51 loc) · 1.52 KB
/
Copy pathpublish.yml
File metadata and controls
68 lines (51 loc) · 1.52 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
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Publish Package
on:
push:
branches:
- main
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 30
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: Check generated Android protocol contract
run: npm run check:android-protocol-contract
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "17"
cache: gradle
- name: Set up Android SDK
uses: android-actions/setup-android@v3
- name: Test, lint, and assemble Android
run: ./apps/android/gradlew -p apps/android testDebugUnitTest lintDebug assembleDebug
- 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