@@ -46,59 +46,19 @@ jobs:
4646 run : |
4747 echo "${{ secrets.NPMRC }}" > ~/.npmrc
4848
49- - name : generate templates
50- run : .github/scripts/template-zip-autogen.sh
51-
52- - name : release templates' daily version to github
53- if : ${{ github.ref == 'refs/heads/dev' && startsWith(github.event.inputs.version, 'pre') }}
54- uses : marvinpinto/action-automatic-releases@latest
55- with :
56- repo_token : ${{ secrets.CD_PAT }}
57- prerelease : true
58- automatic_release_tag : " templates@0.0.0-alpha"
59- files : |
60- ./*.zip
61-
62- - name : release templates' prerelease version to github
63- if : ${{ startsWith(github.ref, 'refs/heads/release/') && github.event.inputs.version == 'prerelease' }}
64- uses : marvinpinto/action-automatic-releases@latest
65- with :
66- repo_token : ${{ secrets.CD_PAT }}
67- prerelease : true
68- automatic_release_tag : " templates@0.0.0-rc"
69- files : |
70- ./*.zip
71-
72- - name : cleanup templates
73- run : rm -rf ./*.zip
74-
75- - name : Download Simple Auth bits
76- uses : nick-invision/retry@v2
77- with :
78- timeout_minutes : 10
79- max_attempts : 10
80- retry_on : error
81- shell : pwsh
82- command : |
83- $version=Get-Content packages/fx-core/templates/plugins/resource/simpleauth/version.txt
84- $tag = "simpleauth@"+$version
85- $fileName="Microsoft.TeamsFx.SimpleAuth_$version.zip"
86- $url = "https://github.com/OfficeDev/TeamsFx/releases/download/"+$tag+"/"+$fileName
87- Invoke-WebRequest $url -OutFile packages/fx-core/templates/plugins/resource/simpleauth/SimpleAuth.zip
88-
8949 - name : Setup project
9050 run : |
9151 npm run setup
9252
9353 - name : Setup git
9454 run : |
95- git config --global user.name 'MSFT-yiz'
96- git config --global user.email 'yiz @microsoft.com'
55+ git config --global user.name "LongOddCode"
56+ git config --global user.email 'haolong @microsoft.com'
9757
9858 - name : check whether vscode extension changed or not
9959 id : extension-checker
10060 run : |
101- if npx lerna changed | grep 'ms-teams-vscode-extension ';
61+ if npx lerna changed | grep 'lerna-test-pkg4 ';
10262 then
10363 echo "::set-output name=CHANGED::true"
10464 else
12484 retry_on : error
12585 command : |
12686 sleep 5
127- cd ./packages/vscode-extension
87+ cd ./packages/p4
12888 npm install
12989 npx vsce package
13090 VERSION=`ls *.vsix | awk -F '.vsix' '{print $1}'`
0 commit comments