From 1ea63db239036803714051c7e4dde0ad85b64fc5 Mon Sep 17 00:00:00 2001 From: Eitan Miller Date: Thu, 7 Dec 2023 18:52:23 -0500 Subject: [PATCH] ci: automate publish --- .github/workflows/publish.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d22412f..4400f37 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,10 +8,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - # Setup .npmrc file to publish to npm + - name: Setup PNPM + uses: pnpm/action-setup@v2.4.0 + with: + version: 8.7.1 - uses: actions/setup-node@v3 with: - node-version: '20.x' + node-version: 18 + cache: 'pnpm' + cache-dependency-path: '**/pnpm-lock.yaml' registry-url: 'https://registry.npmjs.org' - run: pnpm i --frozen-lockfile - run: pnpm publish @@ -25,10 +30,16 @@ jobs: steps: - uses: actions/checkout@v4 # Setup .npmrc file to publish to GitHub Packages + - name: Setup PNPM + uses: pnpm/action-setup@v2.4.0 + with: + version: 8.7.1 - uses: actions/setup-node@v3 with: - node-version: '20.x' - registry-url: 'https://npm.pkg.github.com' + node-version: 18 + cache: 'pnpm' + cache-dependency-path: '**/pnpm-lock.yaml' + registry-url: 'https://registry.npmjs.org' - run: pnpm i --frozen-lockfile - run: pnpm publish env: