Skip to content

Commit 8aa954d

Browse files
authored
chore: use @apify/ui-components package from NPM (#1517)
This PR adopts the new `@apify/ui-components` library which was previously available only on our private NPM registry. This means we should be finally open source again - and people from outside apify org should be able to run things locally (as well as PR checks should work again on PRs from forks). I also did a full lockfile update to be sure we have no duplicates or dated dependencies after the update.
1 parent 94594ef commit 8aa954d

File tree

26 files changed

+818
-605
lines changed

26 files changed

+818
-605
lines changed

.github/workflows/docs.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
cache: 'npm'
2626
cache-dependency-path: 'package-lock.json'
2727
always-auth: 'true'
28-
registry-url: 'https://npm.pkg.github.com/'
29-
scope: '@apify-packages'
3028

3129
- name: Enable corepack
3230
run: |

.github/workflows/lychee.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
cache: 'npm'
1919
cache-dependency-path: 'package-lock.json'
2020
always-auth: 'true'
21-
registry-url: 'https://npm.pkg.github.com/'
22-
scope: '@apify-packages'
2321

2422
- name: Enable corepack
2523
run: |

.github/workflows/openapi.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
node-version: 22
2121
cache: 'npm'
2222
cache-dependency-path: 'package-lock.json'
23-
registry-url: 'https://npm.pkg.github.com/'
24-
scope: '@apify-packages'
2523

2624
- name: Enable corepack
2725
run: |

.github/workflows/publish-theme.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ jobs:
6363
git config --global user.email "noreply@apify.com"
6464
6565
echo "access=public" > ~/.npmrc
66-
echo "@apify-packages:registry=https://npm.pkg.github.com/" >> ~/.npmrc
6766
echo "//registry.npmjs.org/:_authToken=${{ secrets.APIFY_SERVICE_ACCOUNT_NPM_TOKEN }}" >> ~/.npmrc
68-
echo "//npm.pkg.github.com/:_authToken=${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}" >> ~/.npmrc
6967
7068
- name: Bump the theme version
7169
run: |

.github/workflows/test.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
cache: 'npm'
2121
cache-dependency-path: 'package-lock.json'
2222
always-auth: 'true'
23-
registry-url: 'https://npm.pkg.github.com/'
24-
scope: '@apify-packages'
2523

2624
- name: Enable corepack
2725
run: |
@@ -58,8 +56,6 @@ jobs:
5856
node-version: 22
5957
cache: 'npm'
6058
cache-dependency-path: 'package-lock.json'
61-
registry-url: 'https://npm.pkg.github.com/'
62-
scope: '@apify-packages'
6359

6460
- name: Enable corepack
6561
run: |
@@ -93,8 +89,6 @@ jobs:
9389
node-version: 22
9490
cache: 'npm'
9591
cache-dependency-path: 'package-lock.json'
96-
registry-url: 'https://npm.pkg.github.com/'
97-
scope: '@apify-packages'
9892

9993
- name: Enable corepack
10094
run: |

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
@apify-packages:registry=https://npm.pkg.github.com
21
legacy-peer-deps=true

CONTRIBUTING.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,14 @@
1515
3. GitHub access
1616

1717
### Installation steps
18+
1819
<!-- vale off -->
1920
1. Clone the repository
20-
2. Configure GitHub access:
21-
22-
```bash
23-
npm login --scope@apify-packages -registry=https://npm.pkg.github.com --auth-type=legacy
24-
```
25-
26-
3. Run `npm install`
27-
4. Start development server: `npm start`
21+
2. Run `npm install`
22+
3. Start development server: `npm start`
2823
<!-- vale on -->
29-
This will be enough to work on Platform, Academy and, OpenAPI. If you want to work on entire documentation set you need to join them using nginx.
24+
25+
This will be enough to work on Platform, Academy and OpenAPI. If you want to work on the entire documentation set, you need to join them using nginx.
3026

3127
#### Join all repositories with nginx
3228

docusaurus.config.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,6 @@ module.exports = {
272272
return {
273273
module: {
274274
rules: [
275-
{
276-
test: /@apify-packages\/ui-library\/.*/,
277-
resolve: {
278-
fullySpecified: false,
279-
},
280-
loader: 'babel-loader',
281-
},
282275
{
283276
test: /apify-docs\/examples\//i,
284277
type: 'asset/source',

0 commit comments

Comments
 (0)