refactor: add DEFAULT colors for bg, border and text #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release new stable version (main) | |
on: | |
push: | |
branches: [main] | |
concurrency: release-new-version | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
packages: write | |
actions: write | |
pull-requests: write | |
jobs: | |
releaseNewVersion: | |
name: "Release new version" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Setup Project" | |
uses: ./.github/actions/setup-project | |
- name: "Check code quality" | |
uses: ./.github/actions/check-code-quality | |
# - name: "Authenticate with GitHub package registry (publish)" | |
# run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc | |
- name: "Prepare git" | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "github-actions" | |
git branch -u origin/main main | |
- name: "Increase build versions" | |
run: pnpm release --tag-prefix --commit-all | |
# Uncomment when we have a package to publish | |
- name: "Publish package" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_CONFIG_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: pnpm publish --no-git-checks | |
- name: "Push new version to git" | |
run: | | |
git add . | |
git push --follow-tags | |
publishStorybook: | |
name: "Publish Storybook to GitHub Pages" | |
runs-on: ubuntu-latest | |
needs: [releaseNewVersion] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Setup Project" | |
uses: ./.github/actions/setup-project | |
- name: "Build storybook" | |
run: pnpm build:storybook | |
- uses: ./.github/actions/deploy-storybook | |
with: | |
install_command: pnpm install # default: npm ci | |
build_command: pnpm build:storybook # default: npm run build-storybook | |
path: storybook-static # default: dist/storybook | |
checkout: false # default: true |