Skip to content

Commit

Permalink
Updated ci scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed Sep 5, 2024
1 parent 2b0d3ec commit 829051d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

env:
NODE_VERSION: 20.x

jobs:
towncrier:
runs-on: ubuntu-latest
Expand All @@ -17,6 +20,30 @@ jobs:
- name: Install towncrier
run: pip install towncrier

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Enable corepack
run: corepack enable

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: make install

- uses: dorny/paths-filter@v2
id: filter
with:
Expand Down
21 changes: 17 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,24 @@ jobs:

- run: npm install -g npm

- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Enable corepack
run: corepack enable

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
run_install: |
- args: [--frozen-lockfile]
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: make install

- name: Extract package from release tag
id: get_package
Expand Down

0 comments on commit 829051d

Please sign in to comment.