-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (39 loc) · 1.35 KB
/
snapshots.yml
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: Snapshots
on:
workflow_dispatch:
jobs:
snapshots:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.12.2]
concurrency:
group: ${{ github.head_ref }}-snapshots
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Update System
run: sudo apt-get update
- name: Install (Ledger Requirements)
run: sudo apt-get install libudev-dev libusb-1.0-0-dev
- name: Install (pnpm)
run: pnpm install --frozen-lockfile
- name: Rebuild
run: pnpm rebuild
- name: Update Snapshots
continue-on-error: true # Continue on error to allow the commit action to run
run: pnpm test
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: update snapshots"
branch: ${{ github.head_ref }}