Skip to content

Commit

Permalink
chore(release): use pnpm cache and volta for release
Browse files Browse the repository at this point in the history
  • Loading branch information
BobrImperator committed Aug 18, 2023
1 parent 8468237 commit 313771b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,26 @@ on:
tags:
- '*'

env:
VOLTA_FEATURE_PNPM: 1

jobs:
release:
name: Release
runs-on: ubuntu-latest

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
Expand Down

0 comments on commit 313771b

Please sign in to comment.