Skip to content

Commit

Permalink
chore: adjust CI release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
fynnfeldpausch committed Apr 22, 2024
1 parent 118f1ce commit c97fbad
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,41 +17,41 @@ jobs:
id: release
- name: Checkout
uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
if: ${{ fromJSON(steps.release.outputs.releases_created) }}
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.release_created }}
if: ${{ fromJSON(steps.release.outputs.releases_created) }}
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9
run_install: false
if: ${{ steps.release.outputs.release_created }}
if: ${{ fromJSON(steps.release.outputs.releases_created) }}
- name: Get pnpm store directory
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
if: ${{ steps.release.outputs.release_created }}
if: ${{ fromJSON(steps.release.outputs.releases_created) }}
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
if: ${{ steps.release.outputs.release_created }}
if: ${{ fromJSON(steps.release.outputs.releases_created) }}
- name: Install
run: pnpm install
if: ${{ steps.release.outputs.release_created }}
if: ${{ fromJSON(steps.release.outputs.releases_created) }}
- name: Build
run: pnpm run build
if: ${{ steps.release.outputs.release_created }}
if: ${{ fromJSON(steps.release.outputs.releases_created) }}
- name: Install (again - testing...)
run: pnpm install
if: ${{ steps.release.outputs.release_created }}
if: ${{ fromJSON(steps.release.outputs.releases_created) }}
- run: pnpm run publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
if: ${{ fromJSON(steps.release.outputs.releases_created) }}

0 comments on commit c97fbad

Please sign in to comment.