-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (54 loc) · 1.79 KB
/
Copy pathpack.yml
File metadata and controls
64 lines (54 loc) · 1.79 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
name: pack
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
branches: [ master ]
paths-ignore: &paths-ignore
- 'docs/**'
- '**/*.md'
- 'LICENSE'
- '*.png'
- '*.svg'
pull_request:
branches: [ master ]
paths-ignore: *paths-ignore
jobs:
pack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: '26'
cache: npm
cache-dependency-path: src/SJP.Schematic.Reporting/ui/package-lock.json
- name: Cache UI build output
uses: actions/cache@v6
with:
path: |
src/SJP.Schematic.Reporting/obj/npm-ci.stamp
src/SJP.Schematic.Reporting/obj/vite-build.stamp
src/SJP.Schematic.Reporting/ui/node_modules
src/SJP.Schematic.Reporting/ui/dist
key: ui-build-${{ runner.os }}-${{ hashFiles('src/SJP.Schematic.Reporting/ui/*.json', 'src/SJP.Schematic.Reporting/ui/*.html', 'src/SJP.Schematic.Reporting/ui/*.ts', 'src/SJP.Schematic.Reporting/ui/src/**') }}
- name: Setup .NET Core
uses: actions/setup-dotnet@v6
with:
dotnet-version: 10.0.x
- name: Cache NuGet packages
uses: actions/cache@v6
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('src/Directory.Packages.props') }}
restore-keys: nuget-${{ runner.os }}-
- name: Install dependencies
run: dotnet restore
working-directory: src
- name: Pack
run: dotnet pack --configuration Release --no-restore -p:ContinuousIntegrationBuild=true
working-directory: src