Install missing dependency @tailwindcss/vite ⚙️
#15
This file contains hidden or 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: Version or Publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| actions: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| release: | |
| name: Create Version PR or Publish | |
| if: github.repository_owner == 'hirasso' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.HIRASSO_ACTIONS_TOKEN }} | |
| # Setup PNPM first, so that we use the cache in the next action | |
| - name: Setup PNPM | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Require Build | |
| run: pnpm build | |
| # Run changesets action either if there are unreleased changesets (= a PR must be created) | |
| # or if the commit message matches the release PR (= new versions must be published to NPM) | |
| - name: Create changesets PR or publish to NPM | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| title: '[CI] Release' | |
| commit: '[CI] Release' | |
| version: pnpm changeset version | |
| publish: pnpm changeset publish | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.HIRASSO_ACTIONS_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |