From ec836e6d13d377a15c1bbe7f422e2b1992b33262 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 19 Feb 2026 14:20:02 -0500 Subject: [PATCH 1/7] Migrated to npm Trusted Publishing Migrated to npm Trusted Publishing --- .github/workflows/Deploy.yml | 5 ++++- _build/Build.cs | 9 ++++----- _build/_build.csproj | 2 +- package-lock.json | 4 ++-- packages/react-library/package.json | 2 +- packages/stencil-library/licenses.json | 2 +- packages/stencil-library/package.json | 2 +- 7 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index e45c84c3..222048f6 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -25,6 +25,10 @@ on: tags: - 'v*' +permissions: + id-token: write + contents: read + jobs: ubuntu-latest: name: ubuntu-latest @@ -37,4 +41,3 @@ jobs: run: ./build.cmd Deploy env: GithubToken: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/_build/Build.cs b/_build/Build.cs index 8b659465..96bbb1fd 100644 --- a/_build/Build.cs +++ b/_build/Build.cs @@ -37,12 +37,14 @@ [GitHubActions( "Deploy", GitHubActionsImage.UbuntuLatest, - ImportSecrets = new[] { nameof(GithubToken), "NPM_TOKEN" }, + ImportSecrets = new[] { nameof(GithubToken) }, OnPushBranches = new[] { "main", "master", "release/*" }, OnPushTags = new[] { "v*" }, InvokedTargets = new[] { nameof(Deploy) }, FetchDepth = 0, - CacheKeyFiles = new string[] {} + CacheKeyFiles = new string[] {}, + WritePermissions = new[] { GitHubActionsPermissions.IdToken }, + ReadPermissions = new[] { GitHubActionsPermissions.Contents } )] [GitHubActions( "Publish_Site", @@ -263,9 +265,6 @@ class Build : NukeBuild .DependsOn(TagRelease) .DependsOn(Release) .Executes(() => { - var npmToken = Environment.GetEnvironmentVariable("NPM_TOKEN"); - var npmrcFile = RootDirectory / ".npmrc"; - npmrcFile.WriteAllText($"//registry.npmjs.org/:_authToken={npmToken}"); var tag = gitRepository.IsOnMainOrMasterBranch() ? "latest" : "next"; Npm($"publish --access public --tag {tag} --workspaces"); }); diff --git a/_build/_build.csproj b/_build/_build.csproj index e81b54cb..3f76dc8a 100644 --- a/_build/_build.csproj +++ b/_build/_build.csproj @@ -15,7 +15,7 @@ - + diff --git a/package-lock.json b/package-lock.json index 93d65747..8324888b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22229,7 +22229,7 @@ }, "packages/react-library": { "name": "@dnncommunity/dnn-elements-react", - "version": "0.28.0-alpha.330", + "version": "0.28.0-nuke-10.1", "license": "MIT", "dependencies": { "@dnncommunity/dnn-elements": "*", @@ -22248,7 +22248,7 @@ }, "packages/stencil-library": { "name": "@dnncommunity/dnn-elements", - "version": "0.28.0-alpha.330", + "version": "0.28.0-nuke-10.1", "license": "MIT", "dependencies": { "jodit": "^4.6.2" diff --git a/packages/react-library/package.json b/packages/react-library/package.json index 86b72b6d..9054cdea 100644 --- a/packages/react-library/package.json +++ b/packages/react-library/package.json @@ -1,6 +1,6 @@ { "name": "@dnncommunity/dnn-elements-react", - "version": "0.28.0-alpha.330", + "version": "0.28.0-nuke-10.1", "description": "Dnn themed custom elements with react wrappers.", "homepage": "https://github.com/dnncommunity/dnn-elements", "license": "MIT", diff --git a/packages/stencil-library/licenses.json b/packages/stencil-library/licenses.json index ed6c15dd..12cee9e5 100644 --- a/packages/stencil-library/licenses.json +++ b/packages/stencil-library/licenses.json @@ -1,5 +1,5 @@ { - "@dnncommunity/dnn-elements@0.28.0-alpha.330": { + "@dnncommunity/dnn-elements@0.28.0-nuke-10.1": { "licenses": "MIT", "repository": "https://github.com/dnncommunity/dnn-elements", "path": "", diff --git a/packages/stencil-library/package.json b/packages/stencil-library/package.json index c1d8e229..64eceea0 100644 --- a/packages/stencil-library/package.json +++ b/packages/stencil-library/package.json @@ -1,6 +1,6 @@ { "name": "@dnncommunity/dnn-elements", - "version": "0.28.0-alpha.330", + "version": "0.28.0-nuke-10.1", "description": "Dnn themed custom elements.", "repository": "https://github.com/dnncommunity/dnn-elements", "homepage": "https://dnncommunity.github.io/dnn-elements", From 424503dd832848585421e9759aa3a95e6b05dcb3 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 19 Feb 2026 14:40:37 -0500 Subject: [PATCH 2/7] Added permission to push tags --- .github/workflows/Deploy.yml | 1 + _build/Build.cs | 5 ++++- package-lock.json | 4 ++-- packages/react-library/package.json | 2 +- packages/stencil-library/licenses.json | 2 +- packages/stencil-library/package.json | 2 +- 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index 222048f6..71551149 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -27,6 +27,7 @@ on: permissions: id-token: write + contents: write contents: read jobs: diff --git a/_build/Build.cs b/_build/Build.cs index 96bbb1fd..d83291d1 100644 --- a/_build/Build.cs +++ b/_build/Build.cs @@ -43,7 +43,10 @@ InvokedTargets = new[] { nameof(Deploy) }, FetchDepth = 0, CacheKeyFiles = new string[] {}, - WritePermissions = new[] { GitHubActionsPermissions.IdToken }, + WritePermissions = new[] { + GitHubActionsPermissions.IdToken, + GitHubActionsPermissions.Contents, + }, ReadPermissions = new[] { GitHubActionsPermissions.Contents } )] [GitHubActions( diff --git a/package-lock.json b/package-lock.json index 8324888b..864df42b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22229,7 +22229,7 @@ }, "packages/react-library": { "name": "@dnncommunity/dnn-elements-react", - "version": "0.28.0-nuke-10.1", + "version": "0.28.0-beta.2", "license": "MIT", "dependencies": { "@dnncommunity/dnn-elements": "*", @@ -22248,7 +22248,7 @@ }, "packages/stencil-library": { "name": "@dnncommunity/dnn-elements", - "version": "0.28.0-nuke-10.1", + "version": "0.28.0-beta.2", "license": "MIT", "dependencies": { "jodit": "^4.6.2" diff --git a/packages/react-library/package.json b/packages/react-library/package.json index 9054cdea..d8e22070 100644 --- a/packages/react-library/package.json +++ b/packages/react-library/package.json @@ -1,6 +1,6 @@ { "name": "@dnncommunity/dnn-elements-react", - "version": "0.28.0-nuke-10.1", + "version": "0.28.0-beta.2", "description": "Dnn themed custom elements with react wrappers.", "homepage": "https://github.com/dnncommunity/dnn-elements", "license": "MIT", diff --git a/packages/stencil-library/licenses.json b/packages/stencil-library/licenses.json index 12cee9e5..70485bc8 100644 --- a/packages/stencil-library/licenses.json +++ b/packages/stencil-library/licenses.json @@ -1,5 +1,5 @@ { - "@dnncommunity/dnn-elements@0.28.0-nuke-10.1": { + "@dnncommunity/dnn-elements@0.28.0-beta.2": { "licenses": "MIT", "repository": "https://github.com/dnncommunity/dnn-elements", "path": "", diff --git a/packages/stencil-library/package.json b/packages/stencil-library/package.json index 64eceea0..1d6937ac 100644 --- a/packages/stencil-library/package.json +++ b/packages/stencil-library/package.json @@ -1,6 +1,6 @@ { "name": "@dnncommunity/dnn-elements", - "version": "0.28.0-nuke-10.1", + "version": "0.28.0-beta.2", "description": "Dnn themed custom elements.", "repository": "https://github.com/dnncommunity/dnn-elements", "homepage": "https://dnncommunity.github.io/dnn-elements", From 430222cdeed01de4db1aad4441abfc059c967a92 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 19 Feb 2026 15:21:31 -0500 Subject: [PATCH 3/7] Removed duplicate contents entry --- .github/workflows/Deploy.yml | 1 - _build/Build.cs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index 71551149..559f80c7 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -28,7 +28,6 @@ on: permissions: id-token: write contents: write - contents: read jobs: ubuntu-latest: diff --git a/_build/Build.cs b/_build/Build.cs index d83291d1..929f00bc 100644 --- a/_build/Build.cs +++ b/_build/Build.cs @@ -46,8 +46,7 @@ WritePermissions = new[] { GitHubActionsPermissions.IdToken, GitHubActionsPermissions.Contents, - }, - ReadPermissions = new[] { GitHubActionsPermissions.Contents } + } )] [GitHubActions( "Publish_Site", From 24bf7474fab0b6607a58506bfa7b66ef19ad9202 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 19 Feb 2026 16:20:09 -0500 Subject: [PATCH 4/7] Fixed some package.json issues --- _build/Build.cs | 2 +- package.json | 3 ++- packages/stencil-library/package.json | 5 ++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/_build/Build.cs b/_build/Build.cs index 929f00bc..50de060a 100644 --- a/_build/Build.cs +++ b/_build/Build.cs @@ -268,7 +268,7 @@ class Build : NukeBuild .DependsOn(Release) .Executes(() => { var tag = gitRepository.IsOnMainOrMasterBranch() ? "latest" : "next"; - Npm($"publish --access public --tag {tag} --workspaces"); + Npm($"publish --access public --tag {tag} --workspaces --provenance"); }); Target PublishSite => _ => _ diff --git a/package.json b/package.json index 35255f51..01ae1b6a 100644 --- a/package.json +++ b/package.json @@ -13,5 +13,6 @@ "@types/node": "^25.0.10", "lerna": "^9.0.3", "typescript": "^5.0.3" - } + }, + "version": "" } diff --git a/packages/stencil-library/package.json b/packages/stencil-library/package.json index 1d6937ac..7e2a857c 100644 --- a/packages/stencil-library/package.json +++ b/packages/stencil-library/package.json @@ -2,7 +2,10 @@ "name": "@dnncommunity/dnn-elements", "version": "0.28.0-beta.2", "description": "Dnn themed custom elements.", - "repository": "https://github.com/dnncommunity/dnn-elements", + "repository": { + "type": "git", + "url": "git+https://github.com/dnncommunity/dnn-elements.git" + }, "homepage": "https://dnncommunity.github.io/dnn-elements", "license": "MIT", "main": "dist/index.cjs.js", From 9fe523d34fb32ba361297fa0fb209b34a9991f7a Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 19 Feb 2026 19:02:42 -0500 Subject: [PATCH 5/7] Attempting manual yml for deploy --- .github/workflows/Deploy.yml | 4 ++++ _build/Build.cs | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index 559f80c7..e5637516 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -37,6 +37,10 @@ jobs: - uses: actions/checkout@v6 with: fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: '24' + registry-url: 'https://registry.npmjs.org' - name: 'Run: Deploy' run: ./build.cmd Deploy env: diff --git a/_build/Build.cs b/_build/Build.cs index 50de060a..8dfd0311 100644 --- a/_build/Build.cs +++ b/_build/Build.cs @@ -46,7 +46,8 @@ WritePermissions = new[] { GitHubActionsPermissions.IdToken, GitHubActionsPermissions.Contents, - } + }, + AutoGenerate = false )] [GitHubActions( "Publish_Site", From 128624081c859f837410f2576be73889f805ad27 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 19 Feb 2026 19:18:58 -0500 Subject: [PATCH 6/7] Adjusted URLs for npm provenance --- packages/react-library/package.json | 2 +- packages/stencil-library/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-library/package.json b/packages/react-library/package.json index d8e22070..9b41c4b1 100644 --- a/packages/react-library/package.json +++ b/packages/react-library/package.json @@ -18,7 +18,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/dnncommunity/dnn-elements.git" + "url": "https://github.com/DNNCommunity/dnn-elements" }, "scripts": { "build": "npm run tsc", diff --git a/packages/stencil-library/package.json b/packages/stencil-library/package.json index 7e2a857c..b0912601 100644 --- a/packages/stencil-library/package.json +++ b/packages/stencil-library/package.json @@ -4,7 +4,7 @@ "description": "Dnn themed custom elements.", "repository": { "type": "git", - "url": "git+https://github.com/dnncommunity/dnn-elements.git" + "url": "https://github.com/DNNCommunity/dnn-elements" }, "homepage": "https://dnncommunity.github.io/dnn-elements", "license": "MIT", From cc5b4050c0b68abdb863d054adcb468acf3649a8 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 19 Feb 2026 19:30:46 -0500 Subject: [PATCH 7/7] Bumped actions/setup-node to v6 --- .github/workflows/Deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index e5637516..924118a8 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -37,7 +37,7 @@ jobs: - uses: actions/checkout@v6 with: fetch-depth: 0 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version: '24' registry-url: 'https://registry.npmjs.org'