From 66baa1ca00f3808c2fd9527f95fe2dfa26362a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Skr=C3=B8vseth?= Date: Thu, 29 Aug 2024 13:47:58 +0200 Subject: [PATCH] Generate bunfig.toml --- .github/workflows/deploy-to-dev.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-to-dev.yaml b/.github/workflows/deploy-to-dev.yaml index 505740f8..198859f4 100644 --- a/.github/workflows/deploy-to-dev.yaml +++ b/.github/workflows/deploy-to-dev.yaml @@ -47,7 +47,10 @@ jobs: bun-version: latest registry-url: "https://npm.pkg.github.com/" scope: "@navikt" - + + - name: Generate bunfig.toml + run: echo -e "[install.scopes]\n\"@navikt\" = { token = \"${{ secrets.READER_TOKEN }}\", url = \"https://npm.pkg.github.com/\" }" > bunfig.toml + - name: Install frontend dependencies env: BUN_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} @@ -87,8 +90,6 @@ jobs: permissions: contents: read id-token: write - outputs: - artifact-id: ${{ steps.upload.outputs.artifact-id }} steps: - name: Checkout uses: actions/checkout@v4 @@ -135,13 +136,13 @@ jobs: - name: Fetch index.html artifact uses: actions/download-artifact@v4 with: - name: ${{ needs.build-frontend.outputs.artifact-id }} + name: index.html path: ./frontend/dist/index.html - name: Fetch server files artifact uses: actions/download-artifact@v4 with: - name: ${{ needs.build-server.outputs.artifact-id }} + name: server path: ./server/dist - name: Build & push Docker image