Skip to content

Commit

Permalink
🛠️ [Eslint] Switch to eslint-config-love (#52)
Browse files Browse the repository at this point in the history
* 🧰 [Dependency] Upgrade packages

* 🛠️ [Eslint] Switch to eslint-config-love

* 🤖 [GitHub] Update all workflows

* 🧰 [Dependency] Add beeftools

* 🛠️ [Utilities] Remove all utilities that are replaced by beeftools

* 🔥 [Data] Remove onlyfans from the defaultSocialiteNetworks

* 📝 [Report] Add changeset
  • Loading branch information
beefchimi authored Apr 28, 2024
1 parent e05e9a6 commit dad0125
Show file tree
Hide file tree
Showing 18 changed files with 1,042 additions and 876 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-teachers-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"socialitejs": patch
---

Add onlyfans network and update some dependencies.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"browser": true,
"es2022": true
},
"extends": ["standard-with-typescript", "plugin:prettier/recommended"],
"extends": ["love", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Labels
name: 🗃️ PR Labels
on: [pull_request_target]

jobs:
Expand All @@ -10,10 +10,10 @@ jobs:
pull-requests: write

steps:
- name: Checkout repo
- name: 🗳️ Checkout repo
uses: actions/checkout@v4

- name: Apply PR labels
- name: 🍭 Apply PR labels
uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: 🤖 Lint
on: [push]

jobs:
Expand All @@ -7,20 +7,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
- name: 🗳️ Checkout repo
uses: actions/checkout@v4

- name: Setup Node 20.x to install with private scope
- name: 🔧 Setup Node 20.x
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
- name: 📦 Install dependencies
run: npm ci

- name: Lint
- name: 🎨 Lint
run: npm run lint

- name: Prettier
- name: 💄 Prettier
run: npm run format
20 changes: 13 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: 🚀 Release

on:
push:
Expand All @@ -7,28 +7,34 @@ on:

jobs:
release:
name: Release
name: Version and release package
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
- name: 🗳️ Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node 20.x to install with private scope
- name: 🔧 Setup Node 20.x
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
- name: 📦 Install dependencies
run: npm ci

- name: Create PR or publish to NPM
- name: 🏗️ Build project
run: npm run build

- name: 📣 Create PR or publish to NPM
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
title: '🦋 [Release] Version packages'
commit: '🦋 [Changesets] Prepare for next release'
version: npm run release:version
publish: npm run release:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: 🧪 Test
on: [push]

jobs:
Expand All @@ -7,17 +7,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
- name: 🗳️ Checkout repo
uses: actions/checkout@v4

- name: Setup Node 20.x to install with private scope
- name: 🔧 Setup Node 20.x
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
- name: 📦 Install dependencies
run: npm ci

- name: Test
- name: 🧑‍🔬 Test
run: npm run test
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.10
20.12
Loading

0 comments on commit dad0125

Please sign in to comment.