From 313771b2001f1c28fdb3d0f156aaa098d05a4173 Mon Sep 17 00:00:00 2001 From: BobrImperator Date: Fri, 18 Aug 2023 21:08:29 +0200 Subject: [PATCH] chore(release): use pnpm cache and volta for release --- .github/workflows/release.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5bd802629..4d764bf4b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,9 @@ on: tags: - '*' +env: + VOLTA_FEATURE_PNPM: 1 + jobs: release: name: Release @@ -12,10 +15,16 @@ jobs: steps: - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 - - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3 + - uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4 + - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3 with: - node-version: 16.x - registry-url: 'https://registry.npmjs.org' + path: "**/node_modules" + key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm- + + - name: install dependencies + run: pnpm install - name: publish to npm run: cd packages/ember-simple-auth && pnpm prepack && pnpm publish