From 4cca67925f17fa21ce98ebeba8009e6f501d8e49 Mon Sep 17 00:00:00 2001 From: MuhammadM1998 Date: Fri, 24 May 2024 21:17:43 +0300 Subject: [PATCH] feat: add 'setup' composite action --- .github/actions/setup/action.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/actions/setup/action.yml diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml new file mode 100644 index 00000000..c166aea9 --- /dev/null +++ b/.github/actions/setup/action.yml @@ -0,0 +1,16 @@ +name: Setup +description: Installs Node, Enables Corepack and caches pnpm. + +runs: + using: composite + + steps: + - name: Enable corepack + run: corepack enable + shell: bash + + - name: Setup node & pnpm + uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: pnpm