File tree Expand file tree Collapse file tree 1 file changed +25
-9
lines changed Expand file tree Collapse file tree 1 file changed +25
-9
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,8 @@ name: Publish
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
7
- # tags:
8
- # - 'v[1-9].*'
5
+ tags :
6
+ - ' v[1-9].*'
9
7
10
8
jobs :
11
9
build :
@@ -16,21 +14,39 @@ jobs:
16
14
uses : actions/setup-dotnet@v4
17
15
with :
18
16
dotnet-version : 8.0.x
19
- - name : Restore dependencies
17
+ - name : Setup Node
18
+ uses : actions/setup-node@v4
19
+ with :
20
+ node-version : 22
21
+ - name : Restore C# dependencies
20
22
run : dotnet restore
21
- - name : Build
23
+ - name : Restore eslint-config-rock-recommended dependencies
24
+ run : npm ci
25
+ working-directory : ./src/eslint-config-rock-recommended
26
+ - name : Restore obsidian-build-tools dependencies
27
+ run : npm ci
28
+ working-directory : ./src/obsidian-build-tools
29
+ - name : Build C#
22
30
run : dotnet build --no-restore
23
31
- name : Test
24
32
run : dotnet test --no-build --verbosity normal
25
- - name : Pack
33
+ - name : Pack C#
26
34
run : dotnet pack --output .
35
+ - name : Build obsidian-build-tools
36
+ run : npm run build
37
+ working-directory : ./src/obsidian-build-tools
38
+ - name : Pack obsidian-build-tools
39
+ run : npm run pack --pack-destination ../..
40
+ working-directory : ./src/obsidian-build-tools
27
41
- name : List
28
- run : ls -l *.nupkg
42
+ run : ls -l *.nupkg *.
29
43
- name : Archive packages
30
44
uses : actions/upload-artifact@v4
31
45
with :
32
46
name : packages
33
- path : " *.nupkg"
47
+ path : |
48
+ "*.nupkg"
49
+ "*.tgz"
34
50
if-no-files-found : error
35
51
retention-days : 30
36
52
# - name: Publish
You can’t perform that action at this time.
0 commit comments