Skip to content

Commit

Permalink
ci: make pnpm installation less flakey
Browse files Browse the repository at this point in the history
ci keeps failing because `pnpm config` not available after installation.
  • Loading branch information
ifiokjr committed Jul 13, 2020
1 parent 9dafc29 commit 140e635
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 24 deletions.
55 changes: 34 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ jobs:
node-version: 14

- name: install pnpm
run: |
curl -L https://unpkg.com/@pnpm/self-installer | node
pnpm config set store-dir $PNPM_CACHE_FOLDER
run: curl -L https://unpkg.com/@pnpm/self-installer | node

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: audit dependencies
run: pnpm audit --audit-level high
Expand Down Expand Up @@ -95,9 +96,10 @@ jobs:
node-version: 14

- name: install pnpm
run: |
curl -L https://unpkg.com/@pnpm/self-installer | node
pnpm config set store-dir $PNPM_CACHE_FOLDER
run: curl -L https://unpkg.com/@pnpm/self-installer | node

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: audit dependencies
run: pnpm audit --audit-level high
Expand Down Expand Up @@ -133,9 +135,10 @@ jobs:
node-version: 14

- name: install pnpm
run: |
curl -L https://unpkg.com/@pnpm/self-installer | node
pnpm config set store-dir $PNPM_CACHE_FOLDER
run: curl -L https://unpkg.com/@pnpm/self-installer | node

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: audit dependencies
run: pnpm audit --audit-level high
Expand Down Expand Up @@ -171,9 +174,10 @@ jobs:
node-version: 14

- name: install pnpm
run: |
curl -L https://unpkg.com/@pnpm/self-installer | node
pnpm config set store-dir $PNPM_CACHE_FOLDER
run: curl -L https://unpkg.com/@pnpm/self-installer | node

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: audit dependencies
run: pnpm audit --audit-level high
Expand Down Expand Up @@ -223,9 +227,10 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: install pnpm
run: |
curl -L https://unpkg.com/@pnpm/self-installer | node
pnpm config set store-dir $PNPM_CACHE_FOLDER
run: curl -L https://unpkg.com/@pnpm/self-installer | node

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: audit dependencies
run: pnpm audit --audit-level high
Expand Down Expand Up @@ -264,9 +269,10 @@ jobs:
node-version: 14

- name: install pnpm
run: |
curl -L https://unpkg.com/@pnpm/self-installer | node
pnpm config set store-dir $PNPM_CACHE_FOLDER
run: curl -L https://unpkg.com/@pnpm/self-installer | node

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: audit dependencies
run: pnpm audit --audit-level high
Expand Down Expand Up @@ -312,6 +318,9 @@ jobs:
- name: install pnpm
run: npm install pnpm -g

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: audit dependencies
run: pnpm audit --audit-level high

Expand Down Expand Up @@ -356,6 +365,9 @@ jobs:
- name: install pnpm
run: npm install pnpm -g

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: audit dependencies
run: pnpm audit --audit-level high

Expand Down Expand Up @@ -396,9 +408,10 @@ jobs:
node-version: 14

- name: install pnpm
run: |
curl -L https://unpkg.com/@pnpm/self-installer | node
pnpm config set store-dir $PNPM_CACHE_FOLDER
run: curl -L https://unpkg.com/@pnpm/self-installer | node

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: audit dependencies
run: pnpm audit --audit-level high
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ jobs:
node-version: 14

- name: install pnpm
run: |
curl -L https://unpkg.com/@pnpm/self-installer | node
pnpm config set store-dir $PNPM_CACHE_FOLDER
run: curl -L https://unpkg.com/@pnpm/self-installer | node

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: audit dependencies
run: pnpm audit --audit-level high
Expand Down

1 comment on commit 140e635

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://remirror.io as production
🚀 Deployed on https://5f0ca5443d6a940214283446--remirror.netlify.app

Please sign in to comment.