Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
update workflow for dynamic use `_GITHUB_AUTH_TOKEN` to generate composer auth, and .npmrc for private repo access in builds
Ronald A. Richardsonc68ec787c1fb
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.ymlindex 36ca060c..c5999db6 100644--- a/.github/workflows/cd.yml+++ b/.github/workflows/cd.yml@@ -10,7 +10,7 @@ concurrency:env:PROJECT: ${{ secrets.PROJECT }}- COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.COMPOSER_GITHUB_AUTH_TOKEN }}"}}'+ COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets._GITHUB_AUTH_TOKEN }}"}}'jobs:build_service:@@ -51,7 +51,7 @@ jobs:env:REGISTRY: ${{ steps.login-ecr.outputs.registry }}/${{ env.PROJECT }}-${{ env.STACK }}VERSION: ${{ env.VERSION }}- COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.COMPOSER_GITHUB_AUTH_TOKEN }}"}}'+ COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets._GITHUB_AUTH_TOKEN }}"}}'with:push: truefiles: |@@ -131,6 +131,13 @@ jobs:restore-keys: |${{ runner.os }}-pnpm-store-+ - name: Check for _GITHUB_AUTH_TOKEN and create .npmrc+ run: |+ if [[ -n "${{ secrets._GITHUB_AUTH_TOKEN }}" ]]; then+ echo "//npm.pkg.github.com/:_authToken=${{ secrets._GITHUB_AUTH_TOKEN }}" > .npmrc+ fi+ working-directory: ./console+- name: Install dependenciesrun: pnpm installworking-directory: ./console@@ -141,7 +148,6 @@ jobs:pnpm buildworking-directory: ./console-- name: Deploy Console 🚀run: |