diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae5adf8..f780027 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ jobs: another-job: runs-on: ubuntu-latest steps: - - uses: yanhao98/composite-actions/action.yml@main + - uses: yanhao98/composite-actions/setup-node-pnpm-install@main - run: | node --version pnpm --version \ No newline at end of file diff --git a/setup-node-pnpm-install/action.yml b/setup-node-pnpm-install/action.yml new file mode 100644 index 0000000..78076d7 --- /dev/null +++ b/setup-node-pnpm-install/action.yml @@ -0,0 +1,34 @@ +# 🔗 Links: +# Source file: https://github.com/obytes/react-native-template-obytes/blob/master/.github/actions/setup-node-pnpm-install/action.yml +# Composite actions docs: https://docs.github.com/en/actions/creating-actions/creating-a-composite-action + +# ✍️ Description: +# This is a composite action, which means it can be used in other actions. +# It is used in almost all workflows to set up the environment and install dependencies. +# Updating the package manager or Node version here will be reflected in all workflows. + +# 👀 Example usage: +# - name : 📦 Setup Node + PNPM + install deps +# uses: ./.github/actions/setup-node-pnpm-install + +name: 'Setup Node + PNPM + Install Dependencies' +description: 'Setup Node + PNPM + Install Dependencies' +runs: + using: 'composite' + steps: + - uses: pnpm/action-setup@v4 + with: + version: latest + run_install: false + - uses: actions/setup-node@v4 + with: + node-version: 20 + # cache: 'pnpm' + - name: Check Node and PNPM versions + shell: bash + run: | + node --version + pnpm --version + # - name: 📦 Install Project Dependencies + # run: pnpm install --frozen-lockfile + # shell: bash \ No newline at end of file