-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (44 loc) · 1.12 KB
/
ci.yaml
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
name: Build and publish juicer-board to npm
on:
workflow_dispatch:
push:
branches:
- main
jobs:
release:
name: Release juicer-board as npm package
strategy:
matrix:
platform:
- ubuntu-latest
node-version:
- 22.x
runs-on: ${{ matrix.platform }}
permissions:
packages: write
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout repo code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Verify package signatures
run: npm audit signatures
- name: Run tests
run: npm run test --if-present
- name: Build the app
run: npm run build --if-present
- name: Release with semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release