diff --git a/.github/workflows/sst.deploy.yml b/.github/workflows/sst.deploy.yml index 3de095a..9047aeb 100644 --- a/.github/workflows/sst.deploy.yml +++ b/.github/workflows/sst.deploy.yml @@ -22,7 +22,7 @@ on: required: true jobs: - deployer: + sst-deploy: runs-on: ubuntu-latest environment: ${{ inputs.environment }} env: diff --git a/.github/workflows/sst.prod.yml b/.github/workflows/sst.prod.yml index 1203d3c..bcef34e 100644 --- a/.github/workflows/sst.prod.yml +++ b/.github/workflows/sst.prod.yml @@ -9,6 +9,7 @@ on: permissions: id-token: write contents: read + packages: read jobs: deploy: diff --git a/.github/workflows/sst.staging.yml b/.github/workflows/sst.staging.yml index d427d4d..49d6ed8 100644 --- a/.github/workflows/sst.staging.yml +++ b/.github/workflows/sst.staging.yml @@ -15,6 +15,8 @@ permissions: jobs: test: runs-on: ubuntu-latest + permissions: + packages: read environment: Staging steps: - name: Checkout code @@ -27,9 +29,13 @@ jobs: uses: actions/setup-node@v4 with: node-version: latest + registry-url: 'https://npm.pkg.github.com' + scope: '@sgcarstrends' cache: 'pnpm' - name: Install dependencies run: pnpm install + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run tests run: pnpm test diff --git a/.npmrc b/.npmrc index 8e545c6..95bfff1 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,2 @@ @sgcarstrends:registry=https://npm.pkg.github.com/ -//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN} +//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}