Skip to content
Merged
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
9 changes: 8 additions & 1 deletion .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ on:
tags:
- 'v*'

permissions:
id-token: write
contents: write

jobs:
ubuntu-latest:
name: ubuntu-latest
Expand All @@ -33,8 +37,11 @@ jobs:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- name: 'Run: Deploy'
run: ./build.cmd Deploy
env:
GithubToken: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
14 changes: 8 additions & 6 deletions _build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,17 @@
[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,
GitHubActionsPermissions.Contents,
},
AutoGenerate = false
)]
[GitHubActions(
"Publish_Site",
Expand Down Expand Up @@ -263,11 +268,8 @@ 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");
Npm($"publish --access public --tag {tag} --workspaces --provenance");
});

Target PublishSite => _ => _
Expand Down
2 changes: 1 addition & 1 deletion _build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<PackageDownload Include="GitVersion.Tool" Version="[5.11.1]" />
<PackageDownload Include="GitVersion.Tool" Version="[6.6.0]" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"@types/node": "^25.0.10",
"lerna": "^9.0.3",
"typescript": "^5.0.3"
}
},
"version": ""
}
4 changes: 2 additions & 2 deletions packages/react-library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dnncommunity/dnn-elements-react",
"version": "0.28.0-alpha.330",
"version": "0.28.0-beta.2",
"description": "Dnn themed custom elements with react wrappers.",
"homepage": "https://github.com/dnncommunity/dnn-elements",
"license": "MIT",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/stencil-library/licenses.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@dnncommunity/dnn-elements@0.28.0-alpha.330": {
"@dnncommunity/dnn-elements@0.28.0-beta.2": {
"licenses": "MIT",
"repository": "https://github.com/dnncommunity/dnn-elements",
"path": "",
Expand Down
7 changes: 5 additions & 2 deletions packages/stencil-library/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "@dnncommunity/dnn-elements",
"version": "0.28.0-alpha.330",
"version": "0.28.0-beta.2",
"description": "Dnn themed custom elements.",
"repository": "https://github.com/dnncommunity/dnn-elements",
"repository": {
"type": "git",
"url": "https://github.com/DNNCommunity/dnn-elements"
},
"homepage": "https://dnncommunity.github.io/dnn-elements",
"license": "MIT",
"main": "dist/index.cjs.js",
Expand Down
Loading