aboutsummaryrefslogtreecommitdiff
path: root/.github/actions/setup-pnpm
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2023-10-14 22:27:27 -0400
committerPauline <git@ethanlibs.co>2023-10-14 22:27:27 -0400
commit2582162cea2b3a59cd21c78f8b73cb03d0acad40 (patch)
tree432057475f3b51850a85e2cba9969bcb79f3a8e6 /.github/actions/setup-pnpm
parent06f51ccdc496a6581d098edc424f3973e550221d (diff)
downloadNexus-2582162cea2b3a59cd21c78f8b73cb03d0acad40.tar.gz
Nexus-2582162cea2b3a59cd21c78f8b73cb03d0acad40.tar.bz2
Nexus-2582162cea2b3a59cd21c78f8b73cb03d0acad40.zip
refactor(trunk): refactor the entire project idk
Diffstat (limited to '.github/actions/setup-pnpm')
-rw-r--r--.github/actions/setup-pnpm/action.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/actions/setup-pnpm/action.yml b/.github/actions/setup-pnpm/action.yml
new file mode 100644
index 0000000..97f462e
--- /dev/null
+++ b/.github/actions/setup-pnpm/action.yml
@@ -0,0 +1,28 @@
+name: Setup Node.js, pnpm and dependencies
+description: Setup Node.js, pnpm and dependencies
+inputs:
+ token:
+ description: Github token
+ required: false
+ default: ''
+runs:
+ using: 'composite'
+ steps:
+ - name: Install pnpm
+ uses: pnpm/action-setup@v2
+ with:
+ version: 8.x.x
+
+ - name: Install Node.js
+ uses: actions/setup-node@v3
+ with:
+ token: ${{ inputs.token }}
+ check-latest: true
+ node-version-file: '.nvmrc'
+
+ - name: Install pnpm deps
+ shell: ${{ runner.os == 'Windows' && 'powershell' || 'bash' }}
+ env:
+ NODE_ENV: debug
+ GITHUB_TOKEN: ${{ inputs.token }}
+ run: pnpm i --frozen-lockfile