Skip to content

Commit 9f856ff

Browse files
refactor(cleanup): clean up old code
2 parents 0dd3846 + 6ef0048 commit 9f856ff

File tree

302 files changed

+3496
-37585
lines changed

Some content is hidden

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

302 files changed

+3496
-37585
lines changed

.github/workflows/on-release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313

1414
- name: Set up Node.js
15-
uses: actions/setup-node@v2
15+
uses: actions/setup-node@v4
1616
with:
17-
node-version: '18'
18-
registry-url: 'https://registry.npmjs.org/'
17+
node-version: "18"
18+
registry-url: "https://registry.npmjs.org/"
1919

2020
- name: Enable Corepack
2121
run: corepack enable
@@ -37,11 +37,11 @@ jobs:
3737
echo "NPM_PUBLISH_TOKEN=${{ secrets.NPM_PUBLISH_TOKEN || env.NPM_PUBLISH_TOKEN }}" >> $GITHUB_ENV
3838
3939
- name: Install dependencies
40-
run: yarn install
40+
run: yarn install --immutable
4141

4242
- name: Set up .npmrc for authentication
4343
run: |
44-
echo "//registry.npmjs.org/:_authToken=${NPM_PUBLISH_TOKEN}" > ~/.npmrc
44+
echo "//registry.npmjs.org/:_authToken=${{ env.NPM_PUBLISH_TOKEN }}" > ~/.npmrc
4545
4646
- name: Debug - Display .npmrc
4747
run: cat ~/.npmrc

.github/workflows/test.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ name: Yarn Install and Test
33
on:
44
push:
55
branches:
6-
- '**'
6+
- "**"
77

88
jobs:
99
build:
1010
runs-on: ubuntu-latest
1111

1212
steps:
1313
# Checkout the repository
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515

1616
# Set up Node.js environment
1717
- name: Set up Node.js
18-
uses: actions/setup-node@v2
18+
uses: actions/setup-node@v4
1919
with:
20-
node-version: '18'
21-
registry-url: 'https://registry.npmjs.org/'
20+
node-version: "18"
21+
registry-url: "https://registry.npmjs.org/"
2222

2323
# Enable Corepack and use the correct Yarn version
2424
- name: Enable Corepack
@@ -40,7 +40,6 @@ jobs:
4040
- name: Set Environment Variables with fallback to .env
4141
run: |
4242
echo "NPM_READ_TOKEN=${{ secrets.NPM_READ_TOKEN || env.NPM_READ_TOKEN }}" >> $GITHUB_ENV
43-
echo "NPM_PUBLISH_TOKEN=${{ secrets.NPM_PUBLISH_TOKEN || env.NPM_PUBLISH_TOKEN }}" >> $GITHUB_ENV
4443
4544
# Install dependencies
4645
- name: Install dependencies
@@ -54,9 +53,9 @@ jobs:
5453
- name: Run tests with coverage
5554
run: yarn test --coverage
5655

57-
# Archive coverage reports (optional)
56+
# Archive coverage reports (fixed version)
5857
- name: Archive coverage reports
59-
uses: actions/upload-artifact@v2
58+
uses: actions/upload-artifact@v4
6059
with:
6160
name: coverage-report
6261
path: coverage

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ logs
88
npm-debug.log*
99
yarn-debug.log*
1010
yarn-error.log*
11+
/.coverage/*
12+
.yarn/cache
13+
.yarn/installed-state.gz
14+
15+
./typings/*
1116

1217
# IDEs and editors
1318
/.idea/
@@ -25,7 +30,7 @@ yarn-error.log*
2530
.Trashes
2631
ehthumbs.db
2732
Thumbs.db
28-
33+
coverage
2934
dist
3035
.env
3136

.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.yarn/plugins

.yarn/plugins/@yarnpkg/plugin-version.cjs

Lines changed: 550 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-3.6.3.cjs

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

.yarn/versions/06cbf264.yml

Whitespace-only changes.

.yarn/versions/0e0faa9c.yml

Whitespace-only changes.

.yarn/versions/1f01d448.yml

Whitespace-only changes.

.yarn/versions/702f1eac.yml

Whitespace-only changes.

0 commit comments

Comments
 (0)