Install pnpm properly
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
2023-06-01 12:20:16 +02:00
parent db77d2892a
commit ce3207147e
2 changed files with 4 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
- name: Enable corepack - name: Enable corepack
shell: corepack enable shell: corepack enable
when: node_version is version('16.0.0', '<') when: node_version.stdout is version('16.0.0', '<')
- name: Verify corepack - name: Verify corepack
shell: corepack --version shell: corepack --version
@@ -15,7 +15,7 @@
- name: Enable pnpm latest version - name: Enable pnpm latest version
shell: corepack prepare pnpm@latest --activate shell: corepack prepare pnpm@latest --activate
when: node_version is version('16.0.0', '<') when: node_version.stdout is version('16.0.0', '<')
- name: Test pnpm - name: Test pnpm
shell: pnpm --version shell: pnpm --version

View File

@@ -19,6 +19,8 @@
roles: roles:
- role: docker - role: docker
- role: nvm - role: nvm
- role: node
- role: corepack
# Clean up the system # Clean up the system
- hosts: datacenter - hosts: datacenter