File tree Expand file tree Collapse file tree 1 file changed +18
-29
lines changed Expand file tree Collapse file tree 1 file changed +18
-29
lines changed Original file line number Diff line number Diff line change 9
9
workflow_dispatch :
10
10
11
11
jobs :
12
- publish :
13
-
12
+ run-codegen :
14
13
runs-on : windows-latest
15
14
16
15
steps :
17
16
- uses : actions/checkout@v2
18
17
- uses : nuget/setup-nuget@v1
19
18
- name : setup-msbuild
20
19
uses : microsoft/setup-msbuild@v1
21
- - name : Use Node.js
22
- uses : actions/setup-node@v1
23
- with :
24
- node-version : 16
25
- registry-url : https://registry.npmjs.org/
26
-
27
-
28
- - name : yarn install
29
- run : yarn install
30
20
31
21
- name : NuGet restore
32
22
run : nuget restore example\windows\example.sln
@@ -41,29 +31,29 @@ jobs:
41
31
$changed = git status --porcelain=v1
42
32
if ($changed -ne $null) { throw "CodeGen detected changes" }
43
33
34
+ publish-npm :
35
+ runs-on : ubuntu-latest
36
+ needs : run-codegen
37
+
38
+ steps :
39
+ - uses : actions/checkout@v2
40
+ - name : Use Node.js
41
+ uses : actions/setup-node@v1
42
+ with :
43
+ node-version : 16
44
+ registry-url : https://registry.npmjs.org/
45
+
46
+ - name : yarn install
47
+ run : yarn install
44
48
45
49
- name : build TS
46
50
run : yarn build
47
51
48
- # - name: login
49
- # run: npm login --verbose
50
- # env:
51
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
52
-
53
- # - name: whoami
54
- # run: npm whoami --verbose
55
- # env:
56
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
57
-
58
- - name : config
59
- run : npm config list --all
52
+ - name : publish to npm
53
+ run : npm publish
60
54
env :
61
55
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
56
+ working-directory : package
67
57
68
58
- name : upload node logs
69
59
72
62
path : C:\npm\cache\_logs
73
63
continue-on-error : true
74
64
if : always()
75
-
You can’t perform that action at this time.
0 commit comments