File tree Expand file tree Collapse file tree 1 file changed +25
-24
lines changed Expand file tree Collapse file tree 1 file changed +25
-24
lines changed Original file line number Diff line number Diff line change 25
25
registry-url : https://registry.npmjs.org/
26
26
27
27
28
+ - name : yarn install
29
+ run : yarn install
30
+
31
+ - name : NuGet restore
32
+ run : nuget restore example\windows\example.sln
33
+
34
+ - name : run CodeGen
35
+ run : dotnet run -verbose -winmd ..\..\example\windows\packages\Microsoft.UI.Xaml.2.6.0\lib\uap10.0\Microsoft.UI.Xaml.winmd
36
+ working-directory : package\Codegen
37
+
38
+ - name : verify no changes from CodeGen
39
+ shell : powershell
40
+ run : |
41
+ $changed = git status --porcelain=v1
42
+ if ($changed -ne $null) { throw "CodeGen detected changes" }
43
+
44
+
45
+ - name : build TS
46
+ run : yarn build
47
+
28
48
# - name: login
29
49
# run: npm login --verbose
30
50
# env:
@@ -39,11 +59,11 @@ jobs:
39
59
run : npm config list --all
40
60
env :
41
61
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
42
-
43
- - name : publish to npmjs
44
- run : cd package && npm publish --access public && cd ..
45
- env :
46
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
62
+
63
+ - uses : JS-DevTools/npm- publish@v1
64
+ with :
65
+ token : ${{ secrets.NPM_TOKEN }}
66
+ check-version : true
47
67
48
68
- name : upload node logs
49
69
53
73
continue-on-error : true
54
74
if : always()
55
75
56
- - name : yarn install
57
- run : yarn install
58
-
59
- - name : NuGet restore
60
- run : nuget restore example\windows\example.sln
61
-
62
- - name : run CodeGen
63
- run : dotnet run -verbose -winmd ..\..\example\windows\packages\Microsoft.UI.Xaml.2.6.0\lib\uap10.0\Microsoft.UI.Xaml.winmd
64
- working-directory : package\Codegen
65
-
66
- - name : verify no changes from CodeGen
67
- shell : powershell
68
- run : |
69
- $changed = git status --porcelain=v1
70
- if ($changed -ne $null) { throw "CodeGen detected changes" }
71
-
72
-
73
- - name : build TS
74
- run : yarn build
You can’t perform that action at this time.
0 commit comments