diff --git a/.github/workflows/main_tuskbackend.yml b/.github/workflows/main_tuskbackend.yml index 6157d19..eae1a39 100644 --- a/.github/workflows/main_tuskbackend.yml +++ b/.github/workflows/main_tuskbackend.yml @@ -23,7 +23,7 @@ jobs: - name: npm install, build, and test run: | - npm install + npm install --force npm run build --if-present npm run test --if-present @@ -42,8 +42,8 @@ jobs: environment: name: 'Production' url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} - permissions: - id-token: write #This is required for requesting the JWT + permissions: + id-token: write #This is required for requesting the JWT steps: - name: Download artifact from build job @@ -53,13 +53,13 @@ jobs: - name: Unzip artifact for deployment run: unzip release.zip - - - name: Login to Azure - uses: azure/login@v2 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_B23E4DE2374C4101AC5232F9F90C3187 }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_531E7EF0B8914CCBABD8F7DC1665065B }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_51363F20BD0C46E5BE9EE47DB0DEE64F }} + + - name: Login to Azure + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_B23E4DE2374C4101AC5232F9F90C3187 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_531E7EF0B8914CCBABD8F7DC1665065B }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_51363F20BD0C46E5BE9EE47DB0DEE64F }} - name: 'Deploy to Azure Web App' id: deploy-to-webapp @@ -68,4 +68,4 @@ jobs: app-name: 'tuskbackend' slot-name: 'Production' package: . - \ No newline at end of file +