Skip to content

Commit 83e568b

Browse files
authored
chore: migrate from pnpm to npm and add package-lock.json (#636)
* chore: migrate from pnpm to npm and add package-lock.json - Removed pnpm-lock.yaml and replaced it with package-lock.json for dependency management. - Updated GitHub Actions workflows to use npm instead of pnpm for installing dependencies and running scripts. - Adjusted the overrides section in package.json to align with the new setup. This change simplifies the dependency management process and aligns with standard npm practices. * fix: update GitHub Actions workflow for dead domains check - Changed the branch name from 'master' to 'main' in the workflow trigger. - Updated cron syntax to use double quotes for consistency. - Reorganized permissions section to ensure proper access rights for the workflow. These changes enhance the clarity and functionality of the workflow configuration. * fix: update GitHub Actions workflows for consistency and clarity - Changed branch references from 'main' to 'master' in the workflows. - Standardized cron syntax to use double quotes for consistency. - Cleaned up whitespace in the workflow files. These updates improve the readability and maintainability of the workflow configurations. * fix: clean up whitespace in GitHub Actions workflow - Removed unnecessary whitespace in the node-update-deps.yml workflow file. This change enhances the readability of the workflow configuration.
1 parent b3f77af commit 83e568b

File tree

6 files changed

+1118
-653
lines changed

6 files changed

+1118
-653
lines changed

.github/workflows/dead-domains-check.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
name: Dead Domains Check
22

3-
permissions:
4-
contents: write
5-
pull-requests: write
6-
73
env:
84
NODE_VERSION: 20
95

106
on:
117
schedule:
128
# Run the job on every Monday at 8:00 AM UTC
13-
- cron: '0 8 * * 1'
9+
- cron: "0 8 * * 1"
1410
push:
1511
branches:
1612
- master
1713
paths:
18-
- '.github/workflows/dead-domains-check.yml'
14+
- ".github/workflows/dead-domains-check.yml"
1915
workflow_dispatch:
2016

17+
permissions:
18+
contents: write
19+
pull-requests: write
20+
2121
jobs:
2222
dead-domains-check:
2323
name: Run Dead Domains
@@ -26,32 +26,27 @@ jobs:
2626
- name: Check Out Repository
2727
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2828

29-
- name: Install pnpm
30-
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
31-
with:
32-
version: 9
33-
3429
- name: Set up Node.js
3530
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
3631
with:
3732
node-version: ${{ env.NODE_VERSION }}
38-
cache: pnpm
39-
33+
cache: npm
34+
4035
- name: Setup Perl and Tiny
4136
uses: shogo82148/actions-setup-perl@fa3bdcb0144a50651e317f30949bb4491e74a6e4 # v1.37.0
4237
with:
43-
perl-version: '5.38'
38+
perl-version: "5.38"
4439
install-modules: |
4540
Path::Tiny
4641
4742
- name: Install FOP CLI
4843
run: npm install -g fop-cli
4944

5045
- name: Install Dependencies
51-
run: pnpm install
46+
run: npm install
5247

5348
- name: Export Dead Domains
54-
run: pnpm dead-domains-linter --export dead-domains.txt
49+
run: npx dead-domains-linter --export dead-domains.txt
5550

5651
- name: Read Dead Domains
5752
id: read-dead-domains
@@ -123,7 +118,7 @@ jobs:
123118
- name: Perform Changes
124119
if: steps.read-dead-domains.outputs.has_dead_domains == 'true'
125120
run: |
126-
pnpm dead-domains-linter --auto --import dead-domains.txt
121+
npx dead-domains-linter --auto --import dead-domains.txt
127122
128123
- name: Update Checksum and Date
129124
if: steps.read-dead-domains.outputs.has_dead_domains == 'true'

.github/workflows/node-update-deps.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ env:
99
on:
1010
schedule:
1111
# Run the job on every Tuesday at 3:00 PM UTC
12-
- cron: '0 15 * * 2'
12+
- cron: "0 15 * * 2"
1313
push:
14-
branches:
15-
- master
16-
paths:
17-
- '.github/workflows/node-update-deps.yml'
14+
branches:
15+
- master
16+
paths:
17+
- ".github/workflows/node-update-deps.yml"
1818
workflow_dispatch:
1919

2020
jobs:
@@ -25,25 +25,20 @@ jobs:
2525
- name: Check Out Repository
2626
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727

28-
- name: Install pnpm
29-
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
30-
with:
31-
version: 9
32-
3328
- name: Set up Node.js
3429
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
3530
with:
3631
node-version: ${{ env.NODE_VERSION }}
37-
cache: pnpm
32+
cache: npm
3833

3934
- name: Install Dependencies
40-
run: pnpm install
41-
35+
run: npm install
36+
4237
- name: Get Changed Files
4338
id: changed-files
4439
uses: tj-actions/changed-files@e0021407031f5be11a464abee9a0776171c79891 # v47.0.1
4540
with:
46-
since_last_remote_commit: true
41+
since_last_remote_commit: true
4742

4843
- name: List All Changed Files
4944
env:
@@ -52,7 +47,7 @@ jobs:
5247
for file in ${ALL_CHANGED_FILES}; do
5348
echo "$file was changed"
5449
done
55-
50+
5651
- name: Create New Branch
5752
id: create-branch
5853
if: steps.changed-files.outputs.all_changed_files == 'true'

.github/workflows/restyled.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
steps:
2727
- name: Checkout Code
2828
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
29-
with:
30-
ref: ${{ github.event.pull_request.head.ref }}
3129
- name: Setup Restyled
3230
uses: restyled-io/actions/setup@99baa06083ca10257935292eb03fe8ceae58a1eb # v4.4.9
3331
- name: Run Restyled
@@ -55,11 +53,10 @@ jobs:
5553
github.event.pull_request.head.repo.full_name != github.repository
5654
runs-on: ubuntu-latest
5755
steps:
58-
- name: Checkout code
56+
- name: Checkout Code
5957
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6058
with:
6159
repository: ${{ github.event.pull_request.head.repo.full_name }}
62-
ref: ${{ github.event.pull_request.head.ref }}
6360
- name: Setup Restyled
6461
uses: restyled-io/actions/setup@99baa06083ca10257935292eb03fe8ceae58a1eb # v4.4.9
6562
- name: Run Restyled

0 commit comments

Comments
 (0)