Feature/card header #42
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: Package Pre-release CI | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| frontend-ci: | |
| environment: dev | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| packages: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{github.head_ref}} | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: "pnpm" | |
| cache-dependency-path: "**/pnpm-lock.yaml" | |
| always-auth: true | |
| scope: '@schubergphilis' | |
| registry-url: 'https://npm.pkg.github.com' | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: "Setup git user" | |
| run: | | |
| git config user.name "GitHub Actions" | |
| git config user.email "<>" | |
| - name: Install dependencies | |
| working-directory: sbp-frontend-style | |
| run: pnpm install | |
| - name: Build component list | |
| working-directory: sbp-frontend-style | |
| run: pnpm prebuild | |
| - name: Run Tests | |
| working-directory: sbp-frontend-style | |
| run: pnpm test | |
| - name: Build project | |
| working-directory: sbp-frontend-style | |
| run: pnpm build | |
| env: | |
| GENERATE_SOURCEMAP: "false" | |
| - name: Create pre-release version | |
| working-directory: sbp-frontend-style | |
| run: yarn version --prerelease --no-git-tag-version | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Package project | |
| working-directory: sbp-frontend-style | |
| run: pnpm pack && pnpm publish --no-git-checks | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check-in new version | |
| run: | | |
| git add . | |
| git commit -m "chore: bump version [skip ci]" | |
| git push | |