Skip to content

Commit

Permalink
feat(core): Bump simple-icons and faster compilation method
Browse files Browse the repository at this point in the history
  • Loading branch information
wootsbot committed Dec 18, 2024
1 parent d735153 commit 72c89aa
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 42 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/check-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,34 @@ on:
branches:
- main

env:
PNPM_VERSION: 8.10.0

jobs:
check_pull_request:
name: PR Stats
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."

- uses: actions/checkout@v4

- name: 🔥 Setup corepack
run: corepack enable

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: 🔥 Installing pnpm
run: |
corepack enable
corepack prepare pnpm@${{ env.PNPM_VERSION }} --activate
node-version-file: package.json
cache: "pnpm"

- name: 📦 Install dependencies
- name: 📦 Install Dependencies
run: |
pnpm install --no-frozen-lockfile
pnpm --version && pnpm install --frozen-lockfile
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 🔥 generate:icons
- name: 🔥 Run generate:icons
run: pnpm run generate:icons

- name: 💣 build
- name: 💣 Run build
run: pnpm run build
35 changes: 16 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,37 @@ on:
release:
types: [created]

env:
PNPM_VERSION: 8.10.0

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."

- uses: actions/checkout@v4

- name: 🔥 Setup corepack
run: corepack enable

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
node-version-file: package.json
cache: "pnpm"

- name: 🔥 Installing pnpm
- name: 📦 Install Dependencies
run: |
corepack enable
corepack prepare pnpm@${{ env.PNPM_VERSION }} --activate
- name: 📦 Install dependencies
run: |
pnpm install --no-frozen-lockfile
pnpm --version && pnpm install --frozen-lockfile
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 🔥 generate:icons
- name: 🔥 Run generate:icons
run: pnpm run generate:icons

- name: 💣 build
- name: 💣 Run build
run: pnpm run build

# - name: Delete tags
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20",
"pnpm": ">=9"
},
"type": "module",
"main": "./index.js",
"module": "./index.js",
"types": "./index.d.ts",
"files": [
"icons",
"index.*",
"src"
],
"files": ["icons", "index.*", "src"],
"exports": {
".": {
"types": "./index.d.ts",
Expand Down

0 comments on commit 72c89aa

Please sign in to comment.