Skip to content

Commit f6fd369

Browse files
authored
Github Actions cleanup - Use setup node for pnpm cache (#1616)
* Switch setup node for pnpm cache * Test workflows * Add pnpm setup back again
1 parent bbf183f commit f6fd369

File tree

23 files changed

+179
-337
lines changed

23 files changed

+179
-337
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,16 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v3
19-
- uses: actions/setup-node@v3
19+
- uses: pnpm/action-setup@v2
2020
with:
21-
node-version: 16
22-
23-
- uses: pnpm/action-setup@v2.0.1
24-
name: Install pnpm
25-
id: pnpm-install
21+
version: 8
22+
- uses: actions/setup-node@v3.8.1
2623
with:
27-
version: 7
28-
run_install: false
29-
30-
- name: Get pnpm store directory
31-
id: pnpm-cache
32-
run: |
33-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
34-
35-
- uses: actions/cache@v3
36-
name: Setup pnpm cache
37-
with:
38-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
39-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
40-
restore-keys: |
41-
${{ runner.os }}-pnpm-store-
24+
node-version: 18
25+
cache: 'pnpm'
4226

4327
- name: Install dependencies
44-
run: pnpm install
28+
run: pnpm install --frozen-lockfile
4529

4630
- name: Fetch tags
4731
run: git fetch --all --tags
@@ -50,9 +34,6 @@ jobs:
5034
id: latest-tag
5135
run: echo "LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT
5236

53-
- name: Install dependencies
54-
run: pnpm install
55-
5637
- name: Check if we can patch
5738
run: .github/workflows/version-up.sh --minor
5839

.github/workflows/lucide-angular.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,16 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
15+
- uses: pnpm/action-setup@v2
1616
with:
17-
node-version: 16
18-
19-
- uses: pnpm/action-setup@v2.0.1
20-
name: Install pnpm
21-
id: pnpm-install
22-
with:
23-
version: 7
24-
run_install: false
25-
26-
- name: Get pnpm store directory
27-
id: pnpm-cache
28-
run: |
29-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
30-
31-
- uses: actions/cache@v3
32-
name: Setup pnpm cache
17+
version: 8
18+
- uses: actions/setup-node@v3.8.1
3319
with:
34-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
35-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36-
restore-keys: |
37-
${{ runner.os }}-pnpm-store-
20+
node-version: 18
21+
cache: 'pnpm'
3822

3923
- name: Install dependencies
40-
run: pnpm install
24+
run: pnpm install --frozen-lockfile
4125

4226
- name: Build
4327
run: pnpm --filter lucide-angular build

.github/workflows/lucide-font.yml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,20 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3.4.1
15+
- uses: pnpm/action-setup@v2
1616
with:
17-
node-version: 16
18-
19-
- uses: pnpm/action-setup@v2.0.1
20-
name: Install pnpm
21-
id: pnpm-install
22-
with:
23-
version: 7
24-
run_install: false
25-
26-
- name: Get pnpm store directory
27-
id: pnpm-cache
28-
run: |
29-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
30-
31-
- uses: actions/cache@v3
32-
name: Setup pnpm cache
17+
version: 8
18+
- uses: actions/setup-node@v3.8.1
3319
with:
34-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
35-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36-
restore-keys: |
37-
${{ runner.os }}-pnpm-store-
20+
node-version: 18
21+
cache: 'pnpm'
3822

3923
- name: Install dependencies
40-
run: pnpm install --filter outline-svg
24+
run: pnpm install --frozen-lockfile
4125

4226
- name: Outline svg Icons
4327
run: pnpm build:outline-icons
4428

45-
- name: Install dependencies
46-
run: pnpm install --filter build-font
47-
4829
- name: Create font in ./lucide-font
4930
run: pnpm build:font
5031

.github/workflows/lucide-preact.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,16 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
15+
- uses: pnpm/action-setup@v2
1616
with:
17-
node-version: 16
18-
19-
- uses: pnpm/action-setup@v2.0.1
20-
name: Install pnpm
21-
id: pnpm-install
22-
with:
23-
version: 7
24-
run_install: false
25-
26-
- name: Get pnpm store directory
27-
id: pnpm-cache
28-
run: |
29-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
30-
31-
- uses: actions/cache@v3
32-
name: Setup pnpm cache
17+
version: 8
18+
- uses: actions/setup-node@v3.8.1
3319
with:
34-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
35-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36-
restore-keys: |
37-
${{ runner.os }}-pnpm-store-
20+
node-version: 18
21+
cache: 'pnpm'
3822

3923
- name: Install dependencies
40-
run: pnpm install
24+
run: pnpm install --frozen-lockfile
4125

4226
- name: Build
4327
run: pnpm --filter lucide-preact build

.github/workflows/lucide-react-native.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,16 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
15+
- uses: pnpm/action-setup@v2
1616
with:
17-
node-version: 16
18-
19-
- uses: pnpm/action-setup@v2.0.1
20-
name: Install pnpm
21-
id: pnpm-install
22-
with:
23-
version: 7
24-
run_install: false
25-
26-
- name: Get pnpm store directory
27-
id: pnpm-cache
28-
run: |
29-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
30-
31-
- uses: actions/cache@v3
32-
name: Setup pnpm cache
17+
version: 8
18+
- uses: actions/setup-node@v3.8.1
3319
with:
34-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
35-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36-
restore-keys: |
37-
${{ runner.os }}-pnpm-store-
20+
node-version: 18
21+
cache: 'pnpm'
3822

3923
- name: Install dependencies
40-
run: pnpm install
24+
run: pnpm install --frozen-lockfile
4125

4226
- name: Build
4327
run: pnpm --filter lucide-react-native build

.github/workflows/lucide-react.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,16 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
16-
- uses: actions/setup-node@v3
16+
- uses: pnpm/action-setup@v2
1717
with:
18-
node-version: 16
19-
20-
- uses: pnpm/action-setup@v2.0.1
21-
name: Install pnpm
22-
id: pnpm-install
23-
with:
24-
version: 7
25-
run_install: false
26-
27-
- name: Get pnpm store directory
28-
id: pnpm-cache
29-
run: |
30-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
31-
32-
- uses: actions/cache@v3
33-
name: Setup pnpm cache
18+
version: 8
19+
- uses: actions/setup-node@v3.8.1
3420
with:
35-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
36-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
37-
restore-keys: |
38-
${{ runner.os }}-pnpm-store-
21+
node-version: 18
22+
cache: 'pnpm'
3923

4024
- name: Install dependencies
41-
run: pnpm install
25+
run: pnpm install --frozen-lockfile
4226

4327
- name: Build
4428
run: pnpm --filter lucide-react build

.github/workflows/lucide-solid.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,16 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
15+
- uses: pnpm/action-setup@v2
1616
with:
17-
node-version: 16
18-
19-
- uses: pnpm/action-setup@v2.0.1
20-
name: Install pnpm
21-
id: pnpm-install
22-
with:
23-
version: 7
24-
run_install: false
25-
26-
- name: Get pnpm store directory
27-
id: pnpm-cache
28-
run: |
29-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
30-
31-
- uses: actions/cache@v3
32-
name: Setup pnpm cache
17+
version: 8
18+
- uses: actions/setup-node@v3.8.1
3319
with:
34-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
35-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36-
restore-keys: |
37-
${{ runner.os }}-pnpm-store-
20+
node-version: 18
21+
cache: 'pnpm'
3822

3923
- name: Install dependencies
40-
run: pnpm install
24+
run: pnpm install --frozen-lockfile
4125

4226
- name: Build
4327
run: pnpm --filter lucide-solid build

.github/workflows/lucide-static.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,16 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
15+
- uses: pnpm/action-setup@v2
1616
with:
17-
node-version: 16
18-
19-
- uses: pnpm/action-setup@v2.0.1
20-
name: Install pnpm
21-
id: pnpm-install
22-
with:
23-
version: 7
24-
run_install: false
25-
26-
- name: Get pnpm store directory
27-
id: pnpm-cache
28-
run: |
29-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
30-
31-
- uses: actions/cache@v3
32-
name: Setup pnpm cache
17+
version: 8
18+
- uses: actions/setup-node@v3.8.1
3319
with:
34-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
35-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36-
restore-keys: |
37-
${{ runner.os }}-pnpm-store-
20+
node-version: 18
21+
cache: 'pnpm'
3822

3923
- name: Install dependencies
40-
run: pnpm install
24+
run: pnpm install --frozen-lockfile
4125

4226
- name: Build
4327
run: pnpm --filter lucide-static build

.github/workflows/lucide-svelte.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,16 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
15+
- uses: pnpm/action-setup@v2
1616
with:
17-
node-version: 16
18-
19-
- uses: pnpm/action-setup@v2.0.1
20-
name: Install pnpm
21-
id: pnpm-install
22-
with:
23-
version: 7
24-
run_install: false
25-
26-
- name: Get pnpm store directory
27-
id: pnpm-cache
28-
run: |
29-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
30-
31-
- uses: actions/cache@v3
32-
name: Setup pnpm cache
17+
version: 8
18+
- uses: actions/setup-node@v3.8.1
3319
with:
34-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
35-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36-
restore-keys: |
37-
${{ runner.os }}-pnpm-store-
20+
node-version: 18
21+
cache: 'pnpm'
3822

3923
- name: Install dependencies
40-
run: pnpm install
24+
run: pnpm install --frozen-lockfile
4125

4226
- name: Build
4327
run: pnpm --filter lucide-svelte build

0 commit comments

Comments
 (0)