Skip to content

Commit

Permalink
fix: Install dependencies in deploy workflow (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
macko911 authored Oct 18, 2024
1 parent 67da81a commit 5de4ae4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,28 @@ jobs:
deployment_url: ${{ steps.deployment-url.outputs.url }}
steps:
- uses: actions/checkout@v4.1.4

- uses: pnpm/action-setup@v4.0.0

- uses: actions/setup-node@v4.0.2
with:
node-version: "20"
registry-url: "https://npm.pkg.github.com"
scope: ${{ inputs.registry_scope }}

- name: Cache node_modules/.pnpm
uses: actions/cache@v4.0.2
with:
path: node_modules/.pnpm
key: pnpm-node-modules-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
pnpm-node-modules-
- name: Install Dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_REGISTRY_NPM_TOKEN }}

- name: Setup AWS Credentials for Origin Bucket Access
uses: aws-actions/configure-aws-credentials@v4.0.2
with:
Expand Down
16 changes: 16 additions & 0 deletions reusable-workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,28 @@ jobs:
deployment_url: ${{ steps.deployment-url.outputs.url }}
steps:
- uses: actions/checkout@v4.1.4

- uses: pnpm/action-setup@v4.0.0

- uses: actions/setup-node@v4.0.2
with:
node-version: "20"
registry-url: "https://npm.pkg.github.com"
scope: ${{ inputs.registry_scope }}

- name: Cache node_modules/.pnpm
uses: actions/cache@v4.0.2
with:
path: node_modules/.pnpm
key: pnpm-node-modules-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
pnpm-node-modules-
- name: Install Dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_REGISTRY_NPM_TOKEN }}

- name: Setup AWS Credentials for Origin Bucket Access
uses: aws-actions/configure-aws-credentials@v4.0.2
with:
Expand Down

0 comments on commit 5de4ae4

Please sign in to comment.