From 1a5597ebcfe66790c902ac310e4c4d0dc20a1f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Aliprandi?= Date: Mon, 3 Jun 2024 20:23:09 -0300 Subject: [PATCH] chore: Update npm dependencies and build process --- .github/workflows/publish-npm.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 86cb538..ad38396 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -6,18 +6,29 @@ on: jobs: publish: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + steps: - name: 🔗 Checkout uses: actions/checkout@v4 - - name: ⚙️ Setup Node + - name: 📥 Install pnpm + uses: pnpm/action-setup@v4 + + - name: 🛠️ Setup Node ${{ matrix.node-version }} uses: actions/setup-node@v4 with: - node-version: '22.x' + node-version: ${{ matrix.node-version }} + cache: 'pnpm' registry-url: 'https://registry.npmjs.org' - - name: 🔩 Install dependencies and build - run: npm ci && npm run build + - name: 📥 Install dependencies + run: pnpm install + + - name: 🏗️ Build package + run: pnpm run build - name: 📦 Publish package on NPM run: npm publish