Skip to content

Commit 029545b

Browse files
committed
ci: use pnpm with caching in GitHub Actions for faster installs
1 parent dbcb519 commit 029545b

238 files changed

Lines changed: 763 additions & 1819 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ jobs:
5656
with:
5757
version: latest
5858

59+
- name: Cache pnpm store
60+
uses: actions/cache@v4
61+
with:
62+
path: ~/.pnpm-store
63+
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
64+
restore-keys: |
65+
${{ runner.os }}-pnpm-
66+
5967
- name: Install dependencies
6068
if: steps.version_check.outputs.changed == 'true'
6169
run: pnpm install
@@ -156,5 +164,5 @@ jobs:
156164
git config --local user.email "action@github.com"
157165
git config --local user.name "GitHub Action"
158166
git add CHANGELOG.md
159-
git commit -m "docs: update CHANGELOG.md for v${{ steps.current.outputs.version }}"
167+
git commit -m "docs: update CHANGELOG.md for v${{ steps.current.outputs.version }}" --no-verify
160168
git push origin main

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,6 @@ common/autoinstallers/*/.npmrc
117117

118118
# Generated files (auto-generated from SVGs, should not be committed)
119119
src/icons/*.tsx
120+
src/variants/*.ts
120121
src/index.ts
121122

core

Submodule core updated 1 file

eslint.config.mts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ export default [
2929
},
3030
},
3131
rules: {
32-
// Disable some rules that might be too strict for a library
3332
"@typescript-eslint/no-unused-vars": [
3433
"error",
3534
{ argsIgnorePattern: "^_" },
3635
],
37-
"react/react-in-jsx-scope": "off", // Not needed in React 17+
36+
"react/react-in-jsx-scope": "off",
3837
},
3938
},
4039
]

lib/icon-base.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "@zappicon/react",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"description": "Free & premium UI icons library, crafted to simplify workflows for designers, developers and creators.",
55
"main": "dist/cjs/index.js",
6+
"browser": "dist/esm/index.js",
67
"module": "dist/esm/index.js",
78
"types": "dist/index.d.ts",
89
"exports": {
@@ -27,11 +28,7 @@
2728
"components",
2829
"zappicon"
2930
],
30-
"author": {
31-
"name": "Haroun Abidi",
32-
"email": "contact@harounabidi.com",
33-
"url": "https://harounabidi.com"
34-
},
31+
"author": "Haroun Abidi (Developed under Zappicon) <contact@harounabidi.com>",
3532
"license": "MIT",
3633
"repository": {
3734
"type": "git",
@@ -44,7 +41,7 @@
4441
"scripts": {
4542
"preinstall": "npx only-allow pnpm",
4643
"prepare": "husky",
47-
"clean": "rm -rf dist && rm -rf src/icons && rm -rf src/variants",
44+
"clean": "rimraf dist && rimraf src/icons && rimraf src/variants",
4845
"generate": "npm run clean && tsx scripts/generate.ts",
4946
"build": "npm run generate && rollup -c",
5047
"test": "jest",
@@ -66,6 +63,7 @@
6663
"@types/jest": "^30.0.0",
6764
"@types/node": "^24.3.0",
6865
"@types/react": "^19.1.10",
66+
"@types/react-dom": "^19.1.9",
6967
"eslint": "^9.33.0",
7068
"eslint-plugin-react": "^7.37.5",
7169
"glob": "^11.0.3",
@@ -76,9 +74,9 @@
7674
"jiti": "^2.5.1",
7775
"react": "^19.1.1",
7876
"react-dom": "^19.1.1",
77+
"rimraf": "^6.0.1",
7978
"rollup": "^4.46.2",
8079
"rollup-plugin-dts": "^6.2.1",
81-
"rollup-plugin-filesize": "^10.0.0",
8280
"ts-jest": "^29.4.1",
8381
"tslib": "^2.8.1",
8482
"tsx": "^4.20.4",

0 commit comments

Comments
 (0)