0.22.9 - simplify setup process, bump bun version #36
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: Build, Test, & Publish '@schemavaults/theme' Package | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| packages: write | |
| env: | |
| BUN_VERSION: 1.2.22 | |
| jobs: | |
| build-test-and-publish: | |
| name: "Build, test, & publish package" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: ${{ env.BUN_VERSION }} | |
| - name: Install dependencies with Bun | |
| run: bun install | |
| - name: Build package with Bun | |
| run: bun run build | |
| - name: Run package unit tests | |
| run: bun run test | |
| - name: Publish package to GitHub NPM registry | |
| run: bun publish --registry=https://npm.pkg.github.com | |
| env: | |
| SCHEMAVAULTS_GITHUB_PACKAGE_REGISTRY_USER: ${{ github.actor }} | |
| SCHEMAVAULTS_GITHUB_PACKAGE_REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }} |