|
21 | 21 | DOTNET_CLI_TELEMETRY_OPTOUT: true
|
22 | 22 | DOTNET_GENERATE_ASPNET_CERTIFICATE: false
|
23 | 23 | DISPLAY: ':99.0'
|
24 |
| -defaults: |
25 |
| -run: |
26 |
| -working-directory: vscode-powershell |
27 | 24 | steps:
|
28 | 25 | - name: Checkout PowerShellEditorServices
|
29 | 26 | uses: actions/checkout@v4
|
@@ -40,24 +37,20 @@ jobs:
|
40 | 37 | uses: actions/setup-dotnet@v4
|
41 | 38 | with:
|
42 | 39 | cache: true
|
43 |
| -cache-dependency-path: 'PowerShellEditorServices/**/packages.lock.json' |
| 40 | +cache-dependency-path: PowerShellEditorServices/**/packages.lock.json |
44 | 41 | global-json-file: PowerShellEditorServices/global.json
|
45 |
| -source-url: https://pkgs.dev.azure.com/mscodehub/PowerShellCore/_packaging/PowerShellCore_PublicPackages/nuget/v3/index.json |
46 |
| -config-file: PowerShellEditorServices/NuGet.config |
47 |
| -env: |
48 |
| -NUGET_AUTH_TOKEN: ${{ secrets.AZURE_NUGET_TOKEN }} |
49 |
| - |
50 |
| -- name: Install PSResources |
51 |
| -shell: pwsh |
52 |
| -run: ./tools/installPSResources.ps1 |
53 | 42 |
|
54 |
| -- name: Deploy generated NuGet configuration |
| 43 | +- name: Remove Azure Artifact Feed configurations |
55 | 44 | shell: pwsh
|
56 |
| -run: Copy-Item ../../nuget.config ../PowerShellEditorServices/NuGet.config |
| 45 | +run: | |
| 46 | +Remove-Item -Force .npmrc |
| 47 | +Remove-Item test/mocks/BinaryModule/NuGet.Config |
| 48 | +Remove-Item ../PowerShellEditorServices/NuGet.Config |
| 49 | + working-directory: vscode-powershell |
57 | 50 |
|
58 |
| -- name: Deploy NPM configuration |
| 51 | +- name: Install PSResources |
59 | 52 | shell: pwsh
|
60 |
| -run: Copy-Item ./workflows/npmrc .npmrc |
| 53 | +run: ./vscode-powershell/tools/installPSResources.ps1 |
61 | 54 |
|
62 | 55 | - uses: actions/setup-node@v4
|
63 | 56 | with:
|
|
72 | 65 | - name: Build, test and package
|
73 | 66 | shell: pwsh
|
74 | 67 | run: Invoke-Build -Configuration Release
|
75 |
| -env: |
76 |
| -NPM_PASSWORD: ${{ secrets.AZURE_NPM_PASSWORD_BASE64 }} |
| 68 | +working-directory: vscode-powershell |
77 | 69 |
|
78 | 70 | - name: Upload build artifacts
|
79 | 71 | uses: actions/upload-artifact@v4
|
|
0 commit comments