Skip to content

Commit

Permalink
dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Feb 12, 2024
1 parent 7c7bee8 commit 18f6418
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,21 @@ 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
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
Expand All @@ -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
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.
File renamed without changes
2 changes: 1 addition & 1 deletion scripts/changeset.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const run = async () => {
}

const content = `---
'@baloise/design-system-components': ${response.bumpLevel}
'@baloise/ds-tokens': ${response.bumpLevel}
---
**${response.scope}**: ${response.summary}
Expand Down

0 comments on commit 18f6418

Please sign in to comment.