Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions .github/workflows/publish-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:

- name: Set up
uses: ./.github/setup

- name: Add internal NuGet feed
run: ./ci/scripts/Add-InternalNuGetFeed.ps1 `
-internalFeed "${{ secrets.AZURE_ARTIFACTS_FEED }}" `
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
-rigantiSecret "${{ secrets.SIGN_RIGANTI_SECRET }}" `
-rigantiCertificate "${{ secrets.SIGN_RIGANTI_CERTIFICATE_NAME }}"

publish-dotvvm-types:
publish-npm:
runs-on: windows-2022
needs: read-input
steps:
Expand All @@ -129,10 +129,23 @@ jobs:
cat "${{ github.workspace }}/ci/scripts/npm/dotvvm-types/package.json";
working-directory: ci/scripts/npm/dotvvm-types

- name: Build JsComponent.React
run: |
npm ci
npm version "${{ needs.read-input.outputs.version }}" --no-git-tag-version
npm pack
working-directory: src/Framework/JsComponent.React

- name: Build JsComponent.Svelte
run: |
npm ci
npm version "${{ needs.read-input.outputs.version }}" --no-git-tag-version
npm pack
working-directory: src/Framework/JsComponent.Svelte

- name: Set internal npm registry
run: >
./ci/scripts/Set-NpmRegistry.ps1 `
-targetDirectory "./ci/scripts/npm/dotvvm-types" `
-registry "${{ secrets.INTERNAL_NPM_REGISTRY }}" `
-pat "${{ secrets.INTERNAL_NPM_PAT }}" `
-username "${{ secrets.INTERNAL_NPM_USERNAME }}" `
Expand All @@ -141,3 +154,11 @@ jobs:
- name: Publish dotvvm-types
run: npm publish
working-directory: ci/scripts/npm/dotvvm-types

- name: Publish JsComponent.React
run: npm publish
working-directory: src/Framework/JsComponent.React

- name: Publish JsComponent.Svelte
run: npm publish
working-directory: src/Framework/JsComponent.Svelte
98 changes: 0 additions & 98 deletions ci/scripts/CopyBetweenNugetFeeds.ps1

This file was deleted.

45 changes: 0 additions & 45 deletions ci/scripts/CopyPackageBetweenNugetFeeds.ps1

This file was deleted.

13 changes: 8 additions & 5 deletions ci/scripts/Set-NpmRegistry.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,26 @@ if (-not ([string]::IsNullOrWhiteSpace("$targetDirectory"))) {
throw "Target directory '$targetDirectory' does not exist."
}
Set-Location $targetDirectory
$location = "project"
} else {
$location = "user"
}

try {
$feed = "$registry".Trim("https:");
npm config set --location project "registry=$registry"
npm config set --location $location "registry=$registry"
if ($username) {
npm config set --location project "${feed}:username=$username"
npm config set --location $location "${feed}:username=$username"
}
if ($email) {
npm config set --location project "${feed}:email=$email"
npm config set --location $location "${feed}:email=$email"
}
if ($pat) {
$password = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("$pat"));
npm config set --location project "${feed}:_password=$password"
npm config set --location $location "${feed}:_password=$password"
}
if ($authToken) {
npm config set --location project "${feed}:_authToken=$authToken"
npm config set --location $location "${feed}:_authToken=$authToken"
}
}
finally {
Expand Down
18 changes: 0 additions & 18 deletions ci/scripts/npm/build-dotvvm-types.ps1

This file was deleted.

Binary file removed ci/scripts/nuget.exe
Binary file not shown.
Loading
Loading