versioning and deps for proxy and dashboard packages #16
Workflow file for this run
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: Publish Dashboard Package | |
| on: | |
| push: | |
| tags: | |
| - 'dashboard-*' # Triggers on tags like dashboard-1.0.0, dashboard-1.0.1, etc. | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| container: node:24 | |
| permissions: | |
| id-token: write # Required for OIDC trusted publishing | |
| contents: read | |
| services: | |
| postgres: | |
| image: postgres:14 | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: pgboss | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: '24' | |
| - name: Install root dependencies | |
| run: npm install | |
| - name: Install dashboard dependencies | |
| working-directory: packages/dashboard | |
| run: npm install | |
| - name: Publish to npm | |
| working-directory: packages/dashboard | |
| run: npm publish --provenance --access public | |
| env: | |
| DATABASE_URL: postgres://postgres:postgres@postgres:5432/pgboss |