From 18f6418d754ca348b526d28da9279bfecc773b41 Mon Sep 17 00:00:00 2001 From: Gery Hirschfeld Date: Mon, 12 Feb 2024 13:44:03 +0100 Subject: [PATCH] dry run --- .github/workflows/ci.yml | 9 +++++++-- .gitignore | 8 ++++++++ {packages/resources => resources}/data/tags.json | 0 {packages/resources => resources}/images/banner.svg | 0 scripts/changeset.mjs | 2 +- 5 files changed, 16 insertions(+), 3 deletions(-) rename {packages/resources => resources}/data/tags.json (100%) rename {packages/resources => resources}/images/banner.svg (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f178817..17f0331d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: id: changesets uses: changesets/action@v1 with: - publish: npx changeset version + publish: npx nx affected -t build env: HUSKY_DISABLED: 1 BAL_DS_RELEASE: true @@ -59,8 +59,13 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} - name: Build + if: steps.changesets.outputs.published == 'false' run: npx nx affected -t build + - name: Releae dry-run + if: github.ref == 'refs/heads/changeset-release/main' + run: npx nx release --dry-run + # - name: Update lock file # if: steps.changesets.outputs.published == 'true' # run: npm install @@ -84,7 +89,7 @@ jobs: # - name: Update changelog file # if: steps.changesets.outputs.published == 'true' - # run: awk 'NR==1 {print "# Changelog"} NR!=1' packages/components/CHANGELOG.md > CHANGELOG.md + # run: awk 'NR==1 {print "# Changelog"} NR!=1' packages/tokens/CHANGELOG.md > CHANGELOG.md # shell: bash # - name: Commit changelog diff --git a/.gitignore b/.gitignore index dcb457cb..68b14723 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,11 @@ Thumbs.db packages/components/src/utils/constants/icons.constant.ts packages/icons/src/icons.json + +packages/favicons/CHANGELOG.md +packages/fonts/CHANGELOG.md +packages/icons/CHANGELOG.md + +libs/output-targets-angular/CHANGELOG.md +libs/output-targets-react/CHANGELOG.md +libs/output-targets-vue/CHANGELOG.md diff --git a/packages/resources/data/tags.json b/resources/data/tags.json similarity index 100% rename from packages/resources/data/tags.json rename to resources/data/tags.json diff --git a/packages/resources/images/banner.svg b/resources/images/banner.svg similarity index 100% rename from packages/resources/images/banner.svg rename to resources/images/banner.svg diff --git a/scripts/changeset.mjs b/scripts/changeset.mjs index 8eb064e0..cbfbade2 100644 --- a/scripts/changeset.mjs +++ b/scripts/changeset.mjs @@ -90,7 +90,7 @@ const run = async () => { } const content = `--- -'@baloise/design-system-components': ${response.bumpLevel} +'@baloise/ds-tokens': ${response.bumpLevel} --- **${response.scope}**: ${response.summary}