From 21dca7773f5b806677a39c12e62137305bb59374 Mon Sep 17 00:00:00 2001 From: Dan Cormier Date: Tue, 29 Aug 2023 16:33:03 -0400 Subject: [PATCH 1/6] Update colors to v2 mappings --- scripts/build/write-svg.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build/write-svg.ts b/scripts/build/write-svg.ts index 8bd34d97..b28a93f2 100644 --- a/scripts/build/write-svg.ts +++ b/scripts/build/write-svg.ts @@ -219,10 +219,10 @@ export async function processSvgFilesAsync(type: OutputType) { ) // Add classes and aria-attributes since our source files don't have them .replace(/fill="#000"/gi, "") // Remove any fills so paths are colored by the parents' color .replace(/fill="none"/gi, "") // Remove any empty fills that SVGO's removeUselessStrokeAndFill: true doesn't remove - .replace(/fill="#222426"/gi, 'fill="var(--black-800)"') // Replace hardcoded hex value with appropriate CSS variables + .replace(/fill="#222426"/gi, 'fill="var(--black-600)"') // Replace hardcoded hex value with appropriate CSS variables .replace(/fill="#fff"/gi, 'fill="var(--white)"') - .replace(/fill="#6A7E7C"/gi, 'fill="var(--black-500)"') - .replace(/fill="#1A1104"/gi, 'fill="var(--black-900)"') + .replace(/fill="#6A7E7C"/gi, 'fill="var(--black-400)"') + .replace(/fill="#1A1104"/gi, 'fill="var(--black-600)"') .replace( /linearGradient id="(.*?)/gi, `linearGradient id="${icon}$1` From 560d06c313096114b88ee263a9ed3ad6efa555e1 Mon Sep 17 00:00:00 2001 From: Dan Cormier Date: Wed, 6 Sep 2023 15:54:29 -0400 Subject: [PATCH 2/6] 6.0.0-rc.0 --- dotnet/src/StackExchange.StacksIcons.csproj | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dotnet/src/StackExchange.StacksIcons.csproj b/dotnet/src/StackExchange.StacksIcons.csproj index c6e16adb..33157894 100644 --- a/dotnet/src/StackExchange.StacksIcons.csproj +++ b/dotnet/src/StackExchange.StacksIcons.csproj @@ -2,7 +2,7 @@ latest netstandard2.0 - 5.5.0 + 6.0.0-rc.0 StackExchange.StacksIcons StackExchange.StacksIcons enable diff --git a/package-lock.json b/package-lock.json index 65947883..ad9616a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@stackoverflow/stacks-icons", - "version": "5.5.0", + "version": "6.0.0-rc.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@stackoverflow/stacks-icons", - "version": "5.5.0", + "version": "6.0.0-rc.0", "license": "MIT", "devDependencies": { "@rollup/plugin-typescript": "^11.1.2", diff --git a/package.json b/package.json index 47e99238..d1f1e13a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@stackoverflow/stacks-icons", "description": "The icon library for Stack Overflow, Stack Overflow Careers, and the Stack Exchange Network.", - "version": "5.5.0", + "version": "6.0.0-rc.0", "repository": "https://github.com/StackExchange/Stacks-Icons", "license": "MIT", "type": "module", From b7e6d75a35653fac31d6e6bae64be2a962395955 Mon Sep 17 00:00:00 2001 From: Giamir Buoncristiani Date: Tue, 12 Sep 2023 15:19:50 +0200 Subject: [PATCH 3/6] ci(release): generalize publishing script to work also for RCs --- .github/workflows/packages.yml | 7 ++++++- README.md | 2 ++ scripts/sync-dotnet-version.ts | 12 ++++++------ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 66a4f99a..615f332b 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -31,7 +31,12 @@ jobs: env: FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_API_KEY }} - run: npm publish + run: | + if [[ ${{ github.ref }} == *"rc"* ]]; then + npm publish --tag rc + else + npm publish --tag latest + fi - name: .NET Build run: npm run pack:nuget diff --git a/README.md b/README.md index db9458b1..2580a790 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,8 @@ In order to publish a new release to npm and NuGet, you just need to tag a new r ```sh npm version [major|minor|patch] +# for prerelase candidates instead use: +# npm version prerelease --preid rc git push --follow-tags ``` diff --git a/scripts/sync-dotnet-version.ts b/scripts/sync-dotnet-version.ts index c7934f01..18d0a73e 100644 --- a/scripts/sync-dotnet-version.ts +++ b/scripts/sync-dotnet-version.ts @@ -8,14 +8,14 @@ const execAsync = promisify(exec); (async () => { const version = packageJson.version; - const path = "dotnet/src/StackExchange.StacksIcons.csproj"; + const path = "dotnet/src/StackExchange.StacksIcons.csproj"; - let file = await readFile(path, "utf-8"); + let file = await readFile(path, "utf-8"); - file = file.replace( - /([\d.]+?)<\/Version>/, - `${version}` - ); + file = file.replace( + /.*<\/Version>/, + `${version}` + ); await writeFile(path, file, "utf-8"); From eaa278b807ae0f18c8333197b84fc2af9a510350 Mon Sep 17 00:00:00 2001 From: Giamir Buoncristiani Date: Tue, 12 Sep 2023 15:20:12 +0200 Subject: [PATCH 4/6] 6.0.0-rc.1 --- dotnet/src/StackExchange.StacksIcons.csproj | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dotnet/src/StackExchange.StacksIcons.csproj b/dotnet/src/StackExchange.StacksIcons.csproj index 33157894..e0c9dfc0 100644 --- a/dotnet/src/StackExchange.StacksIcons.csproj +++ b/dotnet/src/StackExchange.StacksIcons.csproj @@ -2,7 +2,7 @@ latest netstandard2.0 - 6.0.0-rc.0 + 6.0.0-rc.1 StackExchange.StacksIcons StackExchange.StacksIcons enable diff --git a/package-lock.json b/package-lock.json index ad9616a6..89a9787b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@stackoverflow/stacks-icons", - "version": "6.0.0-rc.0", + "version": "6.0.0-rc.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@stackoverflow/stacks-icons", - "version": "6.0.0-rc.0", + "version": "6.0.0-rc.1", "license": "MIT", "devDependencies": { "@rollup/plugin-typescript": "^11.1.2", diff --git a/package.json b/package.json index d1f1e13a..95d9a52d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@stackoverflow/stacks-icons", "description": "The icon library for Stack Overflow, Stack Overflow Careers, and the Stack Exchange Network.", - "version": "6.0.0-rc.0", + "version": "6.0.0-rc.1", "repository": "https://github.com/StackExchange/Stacks-Icons", "license": "MIT", "type": "module", From 7ae6bda579cd0632326bafdca2862224cda37a63 Mon Sep 17 00:00:00 2001 From: Giamir Buoncristiani Date: Tue, 12 Sep 2023 16:04:18 +0200 Subject: [PATCH 5/6] 6.0.0-rc.2 --- dotnet/src/StackExchange.StacksIcons.csproj | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dotnet/src/StackExchange.StacksIcons.csproj b/dotnet/src/StackExchange.StacksIcons.csproj index e0c9dfc0..2c599c00 100644 --- a/dotnet/src/StackExchange.StacksIcons.csproj +++ b/dotnet/src/StackExchange.StacksIcons.csproj @@ -2,7 +2,7 @@ latest netstandard2.0 - 6.0.0-rc.1 + 6.0.0-rc.2 StackExchange.StacksIcons StackExchange.StacksIcons enable diff --git a/package-lock.json b/package-lock.json index 89a9787b..2cd354fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@stackoverflow/stacks-icons", - "version": "6.0.0-rc.1", + "version": "6.0.0-rc.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@stackoverflow/stacks-icons", - "version": "6.0.0-rc.1", + "version": "6.0.0-rc.2", "license": "MIT", "devDependencies": { "@rollup/plugin-typescript": "^11.1.2", diff --git a/package.json b/package.json index 95d9a52d..b7938167 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@stackoverflow/stacks-icons", "description": "The icon library for Stack Overflow, Stack Overflow Careers, and the Stack Exchange Network.", - "version": "6.0.0-rc.1", + "version": "6.0.0-rc.2", "repository": "https://github.com/StackExchange/Stacks-Icons", "license": "MIT", "type": "module", From 8e01823618bc09ce7e0cfe0d7b87ab8a7329e94f Mon Sep 17 00:00:00 2001 From: Dan Cormier Date: Fri, 6 Oct 2023 16:59:34 -0400 Subject: [PATCH 6/6] 6.0.0 --- dotnet/src/StackExchange.StacksIcons.csproj | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dotnet/src/StackExchange.StacksIcons.csproj b/dotnet/src/StackExchange.StacksIcons.csproj index 2c599c00..01c60fa7 100644 --- a/dotnet/src/StackExchange.StacksIcons.csproj +++ b/dotnet/src/StackExchange.StacksIcons.csproj @@ -2,7 +2,7 @@ latest netstandard2.0 - 6.0.0-rc.2 + 6.0.0 StackExchange.StacksIcons StackExchange.StacksIcons enable diff --git a/package-lock.json b/package-lock.json index 2cd354fe..13d1c450 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@stackoverflow/stacks-icons", - "version": "6.0.0-rc.2", + "version": "6.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@stackoverflow/stacks-icons", - "version": "6.0.0-rc.2", + "version": "6.0.0", "license": "MIT", "devDependencies": { "@rollup/plugin-typescript": "^11.1.2", diff --git a/package.json b/package.json index b7938167..ba8bcbd3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@stackoverflow/stacks-icons", "description": "The icon library for Stack Overflow, Stack Overflow Careers, and the Stack Exchange Network.", - "version": "6.0.0-rc.2", + "version": "6.0.0", "repository": "https://github.com/StackExchange/Stacks-Icons", "license": "MIT", "type": "module",