build(deps-dev): bump @tailwindcss/vite from 4.1.14 to 4.1.18 #198
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-deploy | |
| on: | |
| push: | |
| branches: [develop] | |
| tags: [v*] | |
| jobs: | |
| publish-npm: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| registry-url: "https://registry.npmjs.org" | |
| scope: "@epfml" | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm --workspace=discojs{,-node,-web} version prerelease --preid=p`date +%Y%m%d%H%M%S` | |
| if: github.ref_type == 'branch' | |
| - run: npm --workspace=discojs{,-node,-web} run build | |
| - run: npm --workspace=discojs{,-node,-web} publish --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| build-webapp: | |
| if: github.ref_type == 'branch' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| - run: npm --workspace={discojs,discojs-web,webapp} run build | |
| - uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: webapp/dist | |
| deploy-pages: | |
| needs: build-webapp | |
| if: github.ref_type == 'branch' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 | |
| publish-github-container: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| outputs: | |
| digest: ${{ steps.build.outputs.digest }} | |
| steps: | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: docker/metadata-action@v5 | |
| id: meta | |
| with: | |
| images: ghcr.io/epfml/disco | |
| tags: | | |
| type=semver,pattern={{version}} | |
| type=edge | |
| - uses: docker/build-push-action@v6 | |
| id: build | |
| with: | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| deploy-server: | |
| needs: [publish-github-container] | |
| if: github.ref_type == 'branch' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: google-github-actions/auth@v3 | |
| with: | |
| project_id: disco-367212 | |
| workload_identity_provider: projects/905419434797/locations/global/workloadIdentityPools/github/providers/disco | |
| - uses: google-github-actions/deploy-cloudrun@v3 | |
| with: | |
| service: disco | |
| region: europe-west6 | |
| image: europe-west6-docker.pkg.dev/disco-367212/github/epfml/disco@${{ needs.publish-github-container.outputs.digest }} |