Skip to content

Commit 1581b31

Browse files
author
Shreyas Padhye
committed
Merge branch 'main' into CodegenUpdate
2 parents b8663b4 + 73c8d7c commit 1581b31

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+16625
-16581
lines changed

.gitattributes

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
# Auto detect text files and perform LF normalization
3+
4+
* text=auto
5+
6+
# C# files should use CRLF.
7+
*.tt text eol=crlf
8+
*.cs text eol=crlf
9+
10+
# C++ files should use CRLF.
11+
*.c text eol=crlf
12+
*.cpp text eol=crlf
13+
*.h text eol=crlf
14+
*.hpp text eol=crlf
15+
16+
# Force Visual Studio project files (mostly XML) to CRLF
17+
# This helps avoid conflict which occurs when Xmarian/Mac contributors with AutoCRLF=input (or off)
18+
# check in these files as CRLFs, and then Windows contributors with AutoCRLF=true end up checking then
19+
# files in as LFs (due to AutoCRLF=true normalizing CRLF->LF on check-in).
20+
21+
*.sln text eol=crlf
22+
*.csproj text eol=crlf
23+
*.vbproj text eol=crlf
24+
*.fsproj text eol=crlf
25+
*.pyproj text eol=crlf
26+
*.dbproj text eol=crlf
27+
*.vcxproj text eol=crlf
28+
*.shproj text eol=crlf
29+
*.projitems text eol=crlf
30+
*.vcxitems text eol=crlf
31+
*.props text eol=crlf
32+
*.filters text eol=crlf
33+
34+
*.js text eol=lf
35+
*.jsx text eol=lf
36+
*.js text eol=lf
37+
*.ts text eol=lf
38+
*.tsx text eol=lf
39+
*.ps1 text eol=lf
40+
*.yml text eol=lf
41+
.editorconfig text eol=lf
42+
.gitattributes text eol=lf
43+
package.json text eol=lf

.github/workflows/publish.yml

Lines changed: 21 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,14 @@ on:
99
workflow_dispatch:
1010

1111
jobs:
12-
publish:
13-
12+
run-codegen:
1413
runs-on: windows-latest
1514

1615
steps:
1716
- uses: actions/checkout@v2
1817
- uses: nuget/setup-nuget@v1
1918
- name: setup-msbuild
2019
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
3020

3121
- name: NuGet restore
3222
run: nuget restore example\windows\example.sln
@@ -41,35 +31,34 @@ jobs:
4131
$changed = git status --porcelain=v1
4232
if ($changed -ne $null) { throw "CodeGen detected changes" }
4333
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
4448

4549
- name: build TS
4650
run: yarn build
4751

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
6054
env:
6155
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
6757

68-
- name: upload node logs
58+
- name: upload npm logs
6959
uses: actions/[email protected]
7060
with:
71-
name: node-logs
72-
path: C:\npm\cache\_logs
61+
name: npm-logs
62+
path: /home/runner/.npm/_logs
7363
continue-on-error: true
7464
if: always()
75-

example/windows/.gitignore

Lines changed: 92 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,92 @@
1-
*AppPackages*
2-
*BundleArtifacts*
3-
4-
#OS junk files
5-
[Tt]humbs.db
6-
*.DS_Store
7-
8-
#Visual Studio files
9-
*.[Oo]bj
10-
*.user
11-
*.aps
12-
*.pch
13-
*.vspscc
14-
*.vssscc
15-
*_i.c
16-
*_p.c
17-
*.ncb
18-
*.suo
19-
*.tlb
20-
*.tlh
21-
*.bak
22-
*.[Cc]ache
23-
*.ilk
24-
*.log
25-
*.lib
26-
*.sbr
27-
*.sdf
28-
*.opensdf
29-
*.opendb
30-
*.unsuccessfulbuild
31-
ipch/
32-
[Oo]bj/
33-
[Bb]in
34-
[Dd]ebug*/
35-
[Rr]elease*/
36-
Ankh.NoLoad
37-
38-
# Visual C++ cache files
39-
ipch/
40-
*.aps
41-
*.ncb
42-
*.opendb
43-
*.opensdf
44-
*.sdf
45-
*.cachefile
46-
*.VC.db
47-
*.VC.VC.opendb
48-
49-
#MonoDevelop
50-
*.pidb
51-
*.userprefs
52-
53-
#Tooling
54-
_ReSharper*/
55-
*.resharper
56-
[Tt]est[Rr]esult*
57-
*.sass-cache
58-
59-
#Project files
60-
[Bb]uild/
61-
62-
#Subversion files
63-
.svn
64-
65-
# Office Temp Files
66-
~$*
67-
68-
# vim Temp Files
69-
*~
70-
71-
#NuGet
72-
packages/
73-
*.nupkg
74-
75-
#ncrunch
76-
*ncrunch*
77-
*crunch*.local.xml
78-
79-
# visual studio database projects
80-
*.dbmdl
81-
82-
#Test files
83-
*.testsettings
84-
85-
#Other files
86-
*.DotSettings
87-
.vs/
88-
*project.lock.json
89-
90-
#Files generated by the VS build
91-
**/Generated Files/**
92-
1+
*AppPackages*
2+
*BundleArtifacts*
3+
4+
#OS junk files
5+
[Tt]humbs.db
6+
*.DS_Store
7+
8+
#Visual Studio files
9+
*.[Oo]bj
10+
*.user
11+
*.aps
12+
*.pch
13+
*.vspscc
14+
*.vssscc
15+
*_i.c
16+
*_p.c
17+
*.ncb
18+
*.suo
19+
*.tlb
20+
*.tlh
21+
*.bak
22+
*.[Cc]ache
23+
*.ilk
24+
*.log
25+
*.lib
26+
*.sbr
27+
*.sdf
28+
*.opensdf
29+
*.opendb
30+
*.unsuccessfulbuild
31+
ipch/
32+
[Oo]bj/
33+
[Bb]in
34+
[Dd]ebug*/
35+
[Rr]elease*/
36+
Ankh.NoLoad
37+
38+
# Visual C++ cache files
39+
ipch/
40+
*.aps
41+
*.ncb
42+
*.opendb
43+
*.opensdf
44+
*.sdf
45+
*.cachefile
46+
*.VC.db
47+
*.VC.VC.opendb
48+
49+
#MonoDevelop
50+
*.pidb
51+
*.userprefs
52+
53+
#Tooling
54+
_ReSharper*/
55+
*.resharper
56+
[Tt]est[Rr]esult*
57+
*.sass-cache
58+
59+
#Project files
60+
[Bb]uild/
61+
62+
#Subversion files
63+
.svn
64+
65+
# Office Temp Files
66+
~$*
67+
68+
# vim Temp Files
69+
*~
70+
71+
#NuGet
72+
packages/
73+
*.nupkg
74+
75+
#ncrunch
76+
*ncrunch*
77+
*crunch*.local.xml
78+
79+
# visual studio database projects
80+
*.dbmdl
81+
82+
#Test files
83+
*.testsettings
84+
85+
#Other files
86+
*.DotSettings
87+
.vs/
88+
*project.lock.json
89+
90+
#Files generated by the VS build
91+
**/Generated Files/**
92+

0 commit comments

Comments
 (0)