Compare commits

..

421 Commits

Author SHA1 Message Date
Juan Picado
c4283fa449 chore(release): 5.26.3 2023-09-24 14:10:02 +02:00
Juan Picado
15a8f8a4b3 chore: add assets 2023-09-24 14:09:20 +02:00
Juan Picado
bd0d0291b6 fix: update core dependencies (#4035)
* fix: update core dependencies

* remove node 12 ci

* test

* add files

* Update e2e-angular-cli-workflow.yml

* Update e2e-jest-workflow.yml
2023-09-24 13:01:29 +02:00
Juan Picado
a363707c7b update canary script 2023-09-24 11:45:39 +02:00
Juan Picado
ac9e94cb55 chore(release): 5.26.2 2023-08-26 19:07:24 +02:00
Juan Picado
528a902755 fix: update core depepedencies 5.x (#3991)
update core dependencies (7.x) no breaking changes, just internal bump up to prepare a major release (6.x)
🐛 fix fix: local search keyword undefined errors #3992
🐛 fix Missing "onClick" prop in @verdaccio/ui-components Link component preventing handleDownload call in Package.tsx #3988 #3989
2023-08-26 16:30:54 +02:00
renovate[bot]
f61cfda1c3 fix(deps): update dependency validator to v13.11.0 (#3967)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-09 07:36:17 +02:00
Juan Picado
63f8236bbe chore(release): 5.26.1 2023-07-21 06:58:17 +02:00
renovate[bot]
11097633c8 chore(deps): update node.js to v18.17.0 (#3945)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-21 00:40:52 +02:00
Juan Picado
5e9637da90 fix: add missing token auth middleware (#3944)
* fix: add missing token auth middleware

* improve tests

* format
2023-07-21 00:32:14 +02:00
renovate[bot]
93bc69abc1 chore(deps): update babel monorepo to v7.22.9 (#3936)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-18 21:51:14 +02:00
renovate[bot]
9a81334216 chore(deps): update yarn to v3.6.1 (#3937)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-18 21:51:03 +02:00
Juan Picado
2c7ee01286 chore(release): 5.26.0 2023-07-15 23:46:55 +02:00
Juan Picado
8ec5b2cb6f chore: release snapshot id refactor 2023-07-15 21:49:11 +02:00
Juan Picado
43de79d46a feat: refactor middleware and bufixes (#3922) 2023-07-15 21:37:45 +02:00
Juan Picado
c671faace5 fix: docker update v18.16.1 (#3923) 2023-07-09 11:19:18 +02:00
Juan Picado
4be19db0c1 fix: remove req.host deprecation warning (#3921) 2023-07-09 10:26:36 +02:00
Juan Picado
971d500c6e fix: update dependencies
semver, babel, jest, etc..
2023-07-08 13:11:27 +02:00
renovate[bot]
a69978755d fix(deps): update dependency semver to v7.5.2 (#3895) 2023-06-21 10:26:05 +08:00
renovate[bot]
349c12fd75 chore(deps): update dependency eslint to v8.43.0 (#3881)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-17 15:19:45 +08:00
renovate[bot]
1989e080c0 chore(deps): update actions/checkout digest to c85c95e (#3882)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-17 15:19:31 +08:00
renovate[bot]
68f6e6e877 chore(deps): update actions/checkout action to v3.5.3 (#3883)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-17 15:19:20 +08:00
renovate[bot]
772a1bbb65 chore(deps): update typescript-eslint monorepo to v5.59.11 (#3880)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-17 15:02:24 +08:00
renovate[bot]
a84d1786f8 fix(deps): update dependency verdaccio-audit to v11.0.0-6-next.35 (#3877)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-16 08:35:38 +08:00
renovate[bot]
13d0df0ca3 chore(deps): update babel monorepo to v7.22.5 (#3875)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-15 17:59:06 +08:00
renovate[bot]
adc937fc66 chore(deps): update dependency eslint to v8.42.0 (#3876)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-14 21:39:46 +08:00
renovate[bot]
b39c01f158 fix(deps): update dependency clipanion to v3.2.1 (#3874) 2023-06-13 11:35:29 +08:00
renovate[bot]
f0bb451111 fix(deps): update core verdaccio dependencies (#3873) 2023-06-13 11:34:08 +08:00
renovate[bot]
ec1b49ef12 chore(deps): update yarn to v3.6.0 (#3855)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-03 10:33:13 +02:00
Juan Picado
f3afd04018 chore(release): 5.25.0 2023-06-03 08:49:52 +02:00
renovate[bot]
54fbf5a81a chore(deps): update typescript-eslint monorepo to v5.59.8 (#3852)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-03 08:28:21 +02:00
renovate[bot]
3972702651 chore(deps): update babel monorepo (#3854)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-03 08:25:48 +02:00
Juan Picado
99d06e5f02 fix: update verdaccio 6.x dependencies (#3853)
* fix(core): update verdaccio 6 dependencies

* add

* ci
2023-06-03 08:16:58 +02:00
George Kalpakas
1a5d5b41d5 fix(docker): remove yarn symlinks (#3840)
The [`node:alpine` Docker image][1] adds some symlinks to `yarn` in
`/usr/local/bin/`. These should be removed as part of removing `yarn`
from the Verdaccio Docker image, otherwise there will be errors when
a someone tries to re-install `yarn` in their Docker image that builds
on top of the Verdaccio one.

[1]: 02a64a08a9/18/alpine3.16/Dockerfile (L91-L92)
2023-05-30 14:53:42 +02:00
Juan Picado
c5afdbbb0c fix dependency issue renovate 2023-05-14 18:06:51 +02:00
renovate[bot]
2d6dbc7daf fix(deps): update core verdaccio dependencies (#3822)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-14 17:54:24 +02:00
renovate[bot]
a7a2d5f3e1 fix(deps): update dependency verdaccio-audit to v11.0.0-6-next.33 (#3824)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-14 17:37:43 +02:00
Juan Picado
770cd27759 feat: replace internal web search indexer (#3818)
* feat: replace internal search indexer

* chore: add import

* chore: fix tests

* add search dependency

* remove lunr-mutable-indexes
2023-05-14 13:27:09 +02:00
renovate[bot]
373c584019 fix(deps): update dependency semver to v7.5.1 (#3816) 2023-05-14 08:45:39 +02:00
renovate[bot]
271f918fc8 fix(deps): update dependency @babel/eslint-parser to v7.21.8 (#3807)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-11 07:59:46 +02:00
renovate[bot]
45f0718afc chore(deps): update typescript-eslint monorepo to v5.59.5 (#3806)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-11 07:59:32 +02:00
renovate[bot]
ca77e00882 chore(deps): update dependency @types/express to v4.17.17 (#3800) 2023-05-07 22:24:30 +02:00
renovate[bot]
6c3673cb24 chore(deps): update dependency @types/node to v18.16.5 (#3799) 2023-05-07 22:24:20 +02:00
renovate[bot]
e1ef8c2b52 chore(deps): update typescript-eslint monorepo to v5.59.2 (#3798) 2023-05-07 17:34:49 +02:00
renovate[bot]
e9c663f144 chore(deps): update dependency @types/lodash to v4.14.194 (#3797) 2023-05-07 17:34:38 +02:00
renovate[bot]
a34eb07b1d chore(deps): update dependency eslint to v8.40.0 (#3796)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-07 14:59:22 +02:00
renovate[bot]
dbe1b24b09 chore(deps): replace dependency babel-eslint with @babel/eslint-parser 7.11.0 (#3795)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-07 14:47:44 +02:00
renovate[bot]
b9cb51e78a chore(deps): update dependency prettier to v2.8.8 (#3794)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-07 14:39:08 +02:00
renovate[bot]
a23e9c8e2d chore(deps): update dependency @types/async to v3.2.20 (#3793)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-07 14:32:46 +02:00
renovate[bot]
0e5155ebad chore(deps): update babel monorepo (#3791)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-07 14:23:48 +02:00
renovate[bot]
16623cd8ab chore(deps): update yarn to v3.5.1 (#3792)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-07 14:15:06 +02:00
Juan Picado
807baba858 chore: update ci settings 2023-05-07 13:57:49 +02:00
Juan Picado
9e466946b8 chore(release): 5.24.1 2023-04-24 06:55:32 +02:00
cmkk
268c5e7740 fix: fixed an issue where logger.info in allow_action always output undefined (#3763)
logger.info({ user: user.name }, `auth/allow_action: access granted to: @{user}`);

The above log code will always output undefined
2023-04-24 06:54:52 +02:00
renovate[bot]
12d954ae2c chore(deps): update dependency eslint-config-prettier to v8.8.0 (#3757)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-22 12:15:03 +02:00
Juan Picado
3cd65b840c chore(release): 5.24.0 2023-04-22 12:00:25 +02:00
renovate[bot]
4add891d06 chore(deps): update dependency eslint to v8.39.0 (#3756)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-22 11:45:47 +02:00
renovate[bot]
dd067f5b40 chore(deps): update actions/setup-node action to v2.5.2 (#3754)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-22 11:43:42 +02:00
renovate[bot]
c4df518046 chore(deps): update actions/checkout action to v3.5.2 (#3755)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-22 11:43:33 +02:00
renovate[bot]
7710d6c6f8 chore(deps): update actions/checkout digest to 8e5e7e5 (#3753)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-22 11:42:59 +02:00
Juan Picado
d3bb520374 feat: update docker base image v18.16.0 (#3751) 2023-04-22 11:15:27 +02:00
Juan Picado
e939ca24af feat: upgrade plugin htpassw major (#3712)
Replaces default auth plugin verdaccio-htpasswd@10.x by verdaccio-htpasswd@11.x which is being used in verdaccio 6.x (almost identical)
Apply backward compabiity
Reduces maintenance (monorepo plugin can be removed)
One more step to switch v6.x
Add Node.js 12 GH Action for check backward compatibility
2023-04-22 11:08:59 +02:00
renovate[bot]
b3ea8162ac fix(deps): update dependency verdaccio-htpasswd to v10.5.5 (#3749)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-21 09:55:59 +02:00
renovate[bot]
42798df639 chore(deps): update typescript-eslint monorepo to v5.59.0 (#3747)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-20 16:12:16 +02:00
renovate[bot]
dcd530ba85 fix(deps): update dependency semver to v7.5.0 (#3733)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-17 23:22:53 +02:00
renovate[bot]
48909352a2 chore(deps): update actions/setup-node digest to 64ed1c7 (#3720)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-05 07:34:30 +02:00
Juan Picado
bf6045f9f0 chore(release): 5.23.2 2023-04-04 07:40:02 +02:00
Juan Picado
1cf229d732 chore: update dependencies (#3718) 2023-04-04 07:39:24 +02:00
renovate[bot]
cb7b1d8360 chore(deps): update jest monorepo to v29.5.0 (#3717)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-04 07:18:27 +02:00
jzhangdev
1029d7a381 fix: ui package search (#3713)
* fix: package search

* Update init.ts

---------

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2023-04-04 07:17:31 +02:00
renovate[bot]
8e79e5f4ab fix(deps): update dependency @verdaccio/config to v6.0.0-6-next.67 (#3716) 2023-04-03 23:28:03 +02:00
renovate[bot]
e8daaeec75 chore(deps): update yarn to v3.5.0 (#3714)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-03 21:11:38 +02:00
Juan Picado
c732a76a34 chore: update workflows 2023-04-03 20:59:32 +02:00
Juan Picado
81bee27c76 Update smok-test-module.yml 2023-03-31 08:33:55 +02:00
Juan Picado
980771c04d Update smok-test-module.yml 2023-03-31 08:30:29 +02:00
Juan Picado
aec4e700ba chore: add test for require module (#3710) 2023-03-31 08:28:41 +02:00
Juan Picado
6944b7de35 chore(release): 5.23.1 2023-03-23 10:26:32 +01:00
Michal Piechowiak
5d83c52da3 fix: package.json main field (#3700) 2023-03-23 10:26:17 +01:00
Juan Picado
ef12d884b6 chore(release): 5.23.0 2023-03-23 07:20:55 +01:00
Juan Picado
c95ab88e46 fix: update core dependencies 2023-03-23 07:17:45 +01:00
Juan Picado
fd78ca9772 feat: update docker image base to v18.15.0 2023-03-23 07:13:23 +01:00
Juan Picado
9a684a7cd3 chore: clean up types 2023-03-19 11:39:00 +01:00
Juan Picado
783422b4a2 refactor: migrate @verdaccio/types@11.x (#3692)
* refactor: migrate @verdaccio/types@11

* deps
2023-03-18 22:40:34 +01:00
Juan Picado
b85ba995b5 fix: add missing version on footer #3671 2023-03-18 17:32:29 +01:00
Juan Picado
ccfac8f0aa chore: update typescript (#3689) 2023-03-18 17:26:13 +01:00
Juan Picado
2a6fc98f92 fix: update core dependencies (#3688) 2023-03-18 16:56:31 +01:00
Juan Picado
4c1cc3cec8 chore(release): 5.22.1 2023-03-07 23:06:23 +01:00
Juan Picado
f6c22d3ea8 fix: #3666 experiments config fail on startup (#3668)
* fix: #3666 experiments config fail on startup

* Update experiments.yaml

* Update init.ts

* add tests

* Update bootstrap.ts

* update deps

* update deps
2023-03-07 22:50:16 +01:00
Juan Picado
335704ba2a chore(release): 5.22.0 2023-03-05 08:00:01 +01:00
Juan Picado
dd4726d82b chore: restore removed import 2023-03-03 21:55:38 +01:00
Juan Picado
8d584dddd0 chore: refactor createAnonymousRemoteUser and createRemoteUser 2023-03-03 21:50:43 +01:00
Juan Picado
d78561a3fd chore: clean up code 2023-03-03 21:40:52 +01:00
Juan Picado
e50d4d92a2 feat: improved config and token signature (#3658)
* chore: add signature module

* feat: improved config and token signature

feat: improved config and token signature

Update package.json

* chore: update deps

* types

* fix: logger missing options

* chore: update deps

* update dep

* Update e2e-jest-workflow.yml

* Update init.ts

* Update config-path.ts

* fix logger

* Update init.ts
2023-03-03 21:32:10 +01:00
Juan Picado
8c8dafc8a0 chore(release): 5.21.2 2023-02-25 08:21:10 +01:00
Juan Picado
ed80a25c08 fix: update dependencies (#3649)
* fix: update dependencies

* chore: restore types

* chore: update deps
2023-02-25 08:02:58 +01:00
薄涛
e4573c7e15 fix: avoid setting body for GET requests (#3643)
* fix: avoid setting body for GET requests

When making a GET request to certain uplinks, such as https://registry.npmmirror.com, setting the body field can result in a 413 error. Previously, the code was setting the body field for all requests, including GET requests.

This commit fixes the issue by checking the request method and avoiding setting the body field for GET requests. This ensures that GET requests are not affected by the issue and can be made without error.

Fixes #3601

* add missing deps for run test locally

* test(up-storage): add unit test about uplink is npmmirror

Cause thers is a bug in `isObject` function from `@verdaccio/core`, when `options.json` is `true`
GET request body will be string 'true', some uplinks might return 413 status code such as
https://registry.npmmirror.com

fix #3601

* chore(deps): update @verdaccio/core

---------

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
Co-authored-by: botao <botao@tal.com>
2023-02-24 07:18:18 +01:00
Juan Picado
164d9d2185 add missing deps for run test locally 2023-02-22 07:51:32 +01:00
Juan Picado
7752424de0 chore(release): 5.21.1 2023-02-14 22:33:30 +01:00
Juan Picado
d157131225 chore: remove changelog failures on master 2023-02-14 22:33:04 +01:00
Juan Picado
5385f33991 Update trigger-release.ts 2023-02-14 22:32:40 +01:00
Juan Picado
4105fecf4c fix: restore @verdaccio/ui-theme version 2023-02-14 22:32:01 +01:00
Juan Picado
a858c2161b chore(release): 5.21.0 2023-02-14 22:25:08 +01:00
Juan Picado
f9f269ee04 feat: refactor render middleware and audit plugin (#3602)
* chore: replace web middleware

* clean up

* migrate user agent

* migrate rate limit

* clean up

* replace audit plugin

* feat: refactor render middleware and audit plugin

* update deps

* update deps

* update packages

* update deps

* chore: update deps

* update deps

* update config dep

* chore: update deps

* update deps
2023-02-14 22:20:11 +01:00
Juan Picado
bf9ed26d90 feat: replace middleware and logger core (#3586)
Use verdaccio 6 modules for middleware and logger with pino 7
2023-02-09 21:42:24 +01:00
Juan Picado
cbe4a17337 chore(release): 5.20.1 2023-01-29 16:43:03 +01:00
Juan Picado
fc7cdc19bb chore: test types on builds 2023-01-29 16:25:36 +01:00
Juan Picado
45d7c95a08 fix: pushed wrong types library and broken build 2023-01-29 16:24:58 +01:00
Juan Picado
7439c8d120 chore(release): 5.20.0 2023-01-29 15:34:10 +01:00
Juan Picado
3320b4dfe2 fix: update docker base to 18.13.0 (#3579) 2023-01-28 17:42:38 +01:00
Juan Picado
bae430fe24 feat: refactor test and use verdaccio 6 core modules (#3569)
chore: clean up comments

remove commitlint

update deps

add new tests

test

separate ci

test

test

test

test

test

test

chore: add preprelase

test

test

test

test

test

chore: update deps

Update release-snapshot.yml

Update .npmignore

test

chore: remove @verdaccio/commons-api dep

chore: cleanup

remove normalizeContributors

remove validateMetadata

fix test

clean up getLocalRegistryTarballUri

Update store.spec.ts

clean up convertDistRemoteToLocalTarballUrls

chore: update libraries

reuse getPublic url

clean up

Update jest.config.js

Update jest.config.js

update nvmrc

add tests
2023-01-28 14:39:37 +01:00
Juan Picado
50a20e922b chore: fix automated release notes on publish (#3568)
* chore: fix automated release notes on publish

* chore: fix automated release notes on publish
2023-01-19 22:53:05 +01:00
Juan Picado
d1519228a3 fix: update dependencies (#3567)
* chore: update dependencies

* chore: update batch 2
2023-01-19 00:21:28 +01:00
Juan Picado
a8a992cfb6 chore: upgrade jest 29 (#3566)
* chore: upgrade jest 29

* Update api.spec.ts
2023-01-19 00:09:24 +01:00
Juan Picado
57ac3389f1 chore: removed unused files 2023-01-18 22:50:29 +01:00
Juan Picado
6df04e1ce1 chore: upgrade eslint and prettier (#3565) 2023-01-18 22:49:28 +01:00
Juan Picado
0c315c588c chore(release): 5.19.1 2023-01-07 22:32:17 +01:00
Juan Picado
a774e29715 fix: include ts types and systemd into the published package (#3556) 2023-01-07 22:31:44 +01:00
Juan Picado
3032fc8b28 chore(release): 5.19.0 2022-12-25 22:25:54 +01:00
Juan Picado
99a39d55a2 feat(security): update dependencies (#3540)
* fix:  update dependencies

https://security.snyk.io/vuln/SNYK-JS-JSONWEBTOKEN-3180020

* chore: clean cache

* Update ci.yml

* Update ci.yml
2022-12-25 21:56:24 +01:00
Juan Picado
65f00d33d2 chore: update readme 2022-12-17 13:54:37 +01:00
Juan Picado
64d2ae6ee0 Update smok-test-docker.yml 2022-12-04 11:03:08 +01:00
Juan Picado
01dffb2748 Update smok-test-docker.yml 2022-12-04 10:57:19 +01:00
Juan Picado
8a5daa92ab Update smok-test-docker.yml 2022-12-04 10:53:45 +01:00
Juan Picado
82326e7c5c Create smok-test-docker.yml 2022-12-04 10:50:32 +01:00
Juan Picado
9353b3ebf0 fix: update core dependencies (#3519) 2022-12-03 17:58:46 +01:00
Juan Picado
34ac91f7cb chore(release): 5.18.0 2022-11-23 07:47:23 +01:00
Juan Picado
0b49566176 fix: add hasInstallScript calculation (#3509)
* fix: add hasInstallScript calculation

* Update storage-utils.ts

* chore: add tests
2022-11-23 07:35:10 +01:00
Juan Picado
a0a0654f15 Update package.json 2022-11-22 19:50:02 +01:00
Juan Picado
0a0b772f52 feat: export module types (#3508)
* chore: export types to the module

* chore: remove unused dep

* chore: format

* Update package.json
2022-11-22 18:35:47 +01:00
Juan Picado
83ed963f20 chore(release): 5.17.0 2022-11-19 22:02:15 +01:00
Juan Picado
8715a5cfa2 feat: highlight readme source code (#3506)
* feat: highlight readme source code

* chore: fix tests

* Delete utils.spec.ts.snap
2022-11-19 22:00:56 +01:00
Juan Picado
07144c9886 fix(sec): update base image to v18.12.1-alpine (#3489) 2022-11-09 20:23:27 +01:00
Juan Picado
32535002f4 chore(release): 5.16.3 2022-11-08 20:40:59 +01:00
Juan Picado
32ecdfb301 fix: remove dry run
^_^ not my best release day
2022-11-08 20:40:34 +01:00
Juan Picado
1500f9272e chore(release): 5.16.2 2022-11-08 20:37:55 +01:00
Juan Picado
1f477bd6e8 fix: release package
mixing npm and yarn is something to fix, not good mix
2022-11-08 20:37:46 +01:00
Juan Picado
c7e6222b69 chore: restore npmignore 2022-11-08 20:35:46 +01:00
Juan Picado
4573ad9c8a chore: test release 5.x 2022-11-08 20:32:30 +01:00
Juan Picado
6eb1ea595f chore: test release on ci 2022-11-08 20:30:07 +01:00
Juan Picado
9735e6e401 chore(release): 5.16.1 2022-11-08 20:14:12 +01:00
Juan Picado
61e01368f4 fix: missing files on release
this happens when you remove e2e cli :(
2022-11-08 20:13:54 +01:00
Juan Picado
0a3c66938a chore(release): 5.16.0 2022-11-08 19:47:02 +01:00
Juan Picado
7a000bccdb fix: update core deps (#3485)
* fix: update core deps

* Update e2e-gatsbyjs-cli-workflow.yml

* Update e2e-gatsbyjs-cli-workflow.yml

* Update e2e-gatsbyjs-cli-workflow.yml
2022-11-08 19:45:25 +01:00
Juan Picado
ebaaf3f681 feat: docker image refactor a new internal binary run (#3475) 2022-11-08 07:29:19 +01:00
Juan Picado
644938c0f3 feat: update to docker base image to node v18.12.0 (#3469)
* feat: update to  node v18.12.0

* Delete ci-e2e.yml
2022-11-02 23:09:15 +01:00
Juan Picado
e62cd006ea chore: update yarn 3.x (#3394)
* chore: update yarn

chore: update yarn

Update .pnp.cjs

* chore: rebase from 5.x

* chore: remove cli test

* chore: update jest

* chore: restore jest

* Update Dockerfile

* Update ci.yml

* chore: remove node linker

* restore docker file

* Update ci.yml
2022-11-02 22:52:53 +01:00
Juan Picado
e549d381db chore: clean up project 5.x (#3468)
* chore: clean up project

* Update ci-e2e.yml
2022-11-02 21:41:58 +01:00
renovate[bot]
106e00a751 fix(deps): update dependency dayjs to v1.11.6 (#3459)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-27 08:06:18 +02:00
Juan Picado
829173e3d7 chore: add node 19 to ci (#3450) 2022-10-18 21:34:36 +02:00
renovate[bot]
b3b44f6317 fix(deps): update dependency body-parser to v1.20.1 (#3438)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-15 16:31:34 +02:00
renovate[bot]
1a1572ff9e fix(deps): update dependency marked to v4.1.1 (#3439)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-15 16:31:21 +02:00
renovate[bot]
128ab21a8a fix(deps): update dependency express to v4.18.2 (#3435)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-15 12:56:42 +02:00
renovate[bot]
d8eae392ff chore(deps): update babel monorepo (#3407)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-29 19:01:17 +02:00
Juan Picado
5ad1bf8c4f chore(release): 5.15.4 2022-09-29 08:11:09 +02:00
Juan Picado
1d6b7632d7 fix: docker base image upgraded 14.20.1 (#3405) 2022-09-29 08:09:12 +02:00
renovate[bot]
be5c9f93ed fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.48 (#3404)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-29 07:58:18 +02:00
renovate[bot]
b0a965b3c2 chore(deps): pin dependencies (#3374)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-13 20:11:09 +02:00
Juan Picado
6226e2953d chore(release): 5.15.3 2022-09-07 17:52:46 +02:00
Juan Picado
90e7cfd1ed fix: remove stringify with space responses (#3364) 2022-09-07 17:52:10 +02:00
Juan Picado
b000fafc2d chore(release): 5.15.2 2022-09-05 21:37:16 +02:00
Juan Picado
cdb80aac20 fix: get header by quality priority value (#3359)
* fix: get header by quality priority value

* chore: disable some workflows

* chore: add more tests

* chore: remove some duplicated testss

* chore: return right content type haders
2022-09-05 21:36:23 +02:00
Juan Picado
8ac917deb2 chore(release): 5.15.1 2022-09-04 08:39:04 +02:00
Zoltan Kochan
317177a937 fix: add missing fields to abbreviated metadata (#3347)
* fix: add missing fields to abbreviated metadata

The abbreviated metadata should include the cpu, os, and peerDependenciesMeta fields

* chore: update types

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-09-04 08:24:40 +02:00
Juan Picado
60be3e6cd0 chore(release): 5.15.0 2022-09-03 19:22:57 +02:00
renovate[bot]
354f9ee16c fix(deps): update dependency marked to v4.1.0 (#3346)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-03 19:09:44 +02:00
renovate[bot]
628616ce32 fix(deps): update dependency lru-cache to v7.14.0 (#3345)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-03 19:08:12 +02:00
Juan Picado
966139ffd8 feat: implement abbreviated manifest (#3343)
* feat: implement abbreviated manifest

Follow up of https://github.com/verdaccio/verdaccio/pull/3322
Fixes for 5.x https://github.com/verdaccio/verdaccio/issues/2792

* chore: improve expects

* chore: fix test
2022-09-03 17:55:45 +02:00
Juan Picado
01b487b908 chore: update readme 2022-09-03 14:13:50 +02:00
Juan Picado
7ce2727bf3 chore: update readme 2022-09-03 14:09:33 +02:00
Juan Picado
63e8cc7d65 chore: update readme 2022-09-03 07:16:11 +02:00
renovate[bot]
b1ec0daeca fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.28 (#3335)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-28 17:05:13 +02:00
renovate[bot]
b80794a46f fix(deps): update dependency marked to v4.0.19 (5.x) (#3328)
* fix(deps): update dependency marked to v4.0.19

* Update e2e-jest-workflow.yml

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-08-27 18:45:30 +02:00
renovate[bot]
f810cea0cc chore(deps): update dependency standard-version to v9.5.0 (#3314)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-20 11:23:18 +02:00
renovate[bot]
80755f21c9 fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.26 (#3313) 2022-08-20 11:07:15 +02:00
renovate[bot]
296fe5af60 chore(deps): update dependency supertest to v6.2.4 (#3299)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-17 17:15:39 +02:00
renovate[bot]
6a2b2fa36a fix(deps): update dependency dayjs to v1.11.5 (#3300)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-17 17:15:28 +02:00
renovate[bot]
8b204b3918 chore(deps): update babel monorepo (#3297)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-08 18:47:08 +02:00
Juan Picado
6cb96d7fd9 chore(release): 5.14.0 2022-07-29 20:19:51 +02:00
Ed Clement
0bc26e395a feat: allow express 'trust proxy' to be set for ip resolution behind proxies and load-balancers (#3274) 2022-07-29 20:19:03 +02:00
renovate[bot]
d995cc516e fix(deps): update dependency lru-cache to v7.13.1 (#3268)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-16 13:58:26 +02:00
renovate[bot]
080bd4578f fix(deps): update dependency @verdaccio/readme to v10.4.1 (#3267)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-16 13:58:14 +02:00
Juan Picado
eddabb3de7 chore(release): 5.13.3 2022-07-13 21:31:14 +02:00
renovate[bot]
0a611c0b7d fix(deps): update dependency lru-cache to v7.13.0 (#3266)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-13 21:30:47 +02:00
renovate[bot]
b3f964d93a fix(deps): update dependency marked to v4.0.18 (#3264) 2022-07-13 20:02:12 +02:00
renovate[bot]
531f4685ab fix(deps): update dependency @verdaccio/readme to v10.4.0 (#3265) 2022-07-13 18:58:47 +02:00
renovate[bot]
cc1c2a5e50 fix(deps): update dependency kleur to v4.1.5 (#3263) 2022-07-13 18:36:02 +02:00
Juan Picado
e1b69d2d4f chore(release): 5.13.2 2022-07-12 22:31:02 +02:00
renovate[bot]
af9cc6d4f9 fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.25 (#3258)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-12 22:26:35 +02:00
Lukas Immesberger
5f83dc294e fix: update nodejs to 14.20.0 to fix CVE-2022-32212 (#3262) 2022-07-12 22:26:18 +02:00
renovate[bot]
fc253b1b78 chore(deps): update babel monorepo (#3259)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-12 22:26:04 +02:00
Juan Picado
f6fda6b27c chore(release): 5.13.1 2022-06-23 08:18:13 +02:00
renovate[bot]
991cf1083d fix(deps): update dependency @verdaccio/local-storage to v10.3.1 (#3245)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-23 08:15:45 +02:00
renovate[bot]
236b6bfeda chore(deps): update dependency prettier to v2.7.1 (#3243)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-22 23:01:14 +02:00
renovate[bot]
884e05b13e fix(deps): update dependency verdaccio-htpasswd to v10.5.0 (#3242)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-22 22:34:04 +02:00
Juan Picado
78c789c76c chore: update readme 2022-06-22 22:33:41 +02:00
Juan Picado
5075030749 chore: update readme 2022-06-22 21:34:26 +02:00
Juan Picado
88f15b1131 chore: update readme 2022-06-22 21:33:52 +02:00
Juan Picado
40efe64517 chore: update readme 2022-06-22 21:33:01 +02:00
Juan Picado
23b5c1d6ef aling eslint config with main branch (#3238)
* chore: update linter tools

* fix: eslint warnings

* fix: eslint warnings

* chore: set max warnings
2022-06-19 21:26:46 +02:00
Juan Picado
f8df6d2ef9 chore(release): 5.13.0 2022-06-17 05:32:08 +02:00
Juan Picado
87fbc0fb7c feat: allow other password hashing algorithms (#3229) 2022-06-14 21:56:50 +02:00
Juan Picado
3c06bbd1d2 chore(release): 5.12.0 2022-06-14 07:48:04 +02:00
Juan Picado
5c50ec9a2c feat: add scope support loading plugins (#3227)
* feat: add scope support loading plugins

* format

* Update src/lib/plugin-loader.ts

Co-authored-by: Michael Prentice <splaktar@gmail.com>

* Update src/lib/plugin-loader.ts

Co-authored-by: Michael Prentice <splaktar@gmail.com>

* chore: add tests

* chore: add comment

* format

* chore: update dep

* chore: add better name

Co-authored-by: Michael Prentice <splaktar@gmail.com>
2022-06-14 07:47:17 +02:00
renovate[bot]
9d9c086ba3 fix(deps): update dependency marked to v4.0.17 (#3226)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 23:15:19 +02:00
renovate[bot]
325e536f03 fix(deps): update dependency dayjs to v1.11.3 (#3225)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 22:27:53 +02:00
renovate[bot]
c486af23ea fix(deps): update dependency async to v3.2.4 (#3224)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 22:27:41 +02:00
renovate[bot]
2b8ac7a1ac fix(deps): update dependency @verdaccio/local-storage to v10.3.0 (#3223)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 22:07:28 +02:00
renovate[bot]
03e52940cc chore(deps): update dependency verdaccio-memory to v10.3.0 (#3222)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 22:07:18 +02:00
renovate[bot]
4f8c4a46cf chore(deps): update dependency @verdaccio/types to v10.5.1 (#3221)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 22:07:04 +02:00
renovate[bot]
25a2825f8b fix(deps): update dependency verdaccio-htpasswd to v10.3.1 (#3220)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 21:38:47 +02:00
renovate[bot]
d5fa7fb7b4 chore(deps): update dependency @verdaccio/eslint-config to v10 (#3219)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 21:18:13 +02:00
renovate[bot]
7bc60ffca8 fix(deps): update dependency lru-cache to v7.10.1 (#3182) 2022-06-02 21:01:15 +02:00
renovate[bot]
e5dbd9bbd1 fix(deps): update dependency minimatch to v5.1.0 (#3183) 2022-06-02 21:01:02 +02:00
Juan Picado
e9542d2fda chore(release): 5.11.0 2022-06-02 17:57:49 +02:00
Juan Picado
42194c7302 feat: run server init as promise (#3210)
* feat: run server init as promise

* chore: format

* fix: format

* fix: format

* fix: restore files

* fix: restore files

* fix: disable steps

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli
2022-06-02 17:39:49 +02:00
renovate[bot]
4f59bb8f20 chore(deps): update actions/checkout action to v3.0.2 (#3185)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-30 22:27:08 +02:00
Juan Picado
78d4078b75 chore(release): 5.10.3 2022-05-30 18:32:46 +02:00
renovate[bot]
acfa4ea781 chore(deps): update dependency verdaccio-memory to v10.2.1 (#3204)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-30 18:23:22 +02:00
renovate[bot]
9e743f493e fix(deps): update dependency verdaccio-audit to v10.2.2 (#3201) 2022-05-30 16:13:32 +02:00
renovate[bot]
2443900329 fix(deps): update dependency @verdaccio/readme to v10.3.4 (#3197)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-30 07:21:01 +02:00
renovate[bot]
2373f4126d chore(deps): update babel monorepo to v7.17.12 (#3186)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-19 20:39:39 +02:00
renovate[bot]
a17378d252 fix(deps): update dependency marked to v4.0.16 (#3187)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-19 19:57:16 +02:00
Juan Picado
e427ee40f2 chore(release): 5.10.2 2022-05-07 11:06:35 +02:00
renovate[bot]
5fffeacda9 fix(deps): update dependency express to v4.18.1 (#3160)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 11:01:37 +02:00
renovate[bot]
f16a1ea68d fix(deps): update dependency lru-cache to v7.9.0 (#3161)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 11:01:06 +02:00
renovate[bot]
cd39a429b6 fix(deps): update dependency dayjs to v1.11.2 (#3159)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 11:00:56 +02:00
Juan Picado
adfbefc59e fix: remove lru deprecation warning (#3158)
* fix: remove lru deprecation warning

* fix: format
2022-05-07 10:36:56 +02:00
renovate[bot]
0a1e9d649f chore(deps): update dependency supertest to v6.2.3 (#3155)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 09:51:51 +02:00
renovate[bot]
a4037343e2 chore(deps): update babel monorepo (#3157)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 09:51:34 +02:00
renovate[bot]
61249a4edd fix(deps): update dependency marked to v4.0.15 (#3153)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-05 08:10:16 +02:00
Juan Picado
559a7343d6 chore(release): 5.10.1 2022-05-05 07:54:33 +02:00
Juan Picado
923e63c5f0 chore: update vscode settings 2022-05-05 07:51:29 +02:00
Juan Picado
4457ce5a6e chore: update readme 2022-05-05 07:51:15 +02:00
Juan Picado
51803c3477 fix: duplicated groups on use jwt tokens (#3151)
* fix: duplicated groups on use jwt tokens

* chore: format

* chore: fix jest ci
2022-05-05 00:13:55 +02:00
Juan Picado
34b7394bcf chore(release): 5.10.0 2022-04-26 20:05:18 +02:00
renovate[bot]
abb8b60356 chore(deps): update dependency @types/lodash to v4.14.182 (#3139)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-23 08:19:55 +02:00
renovate[bot]
dcb181a7d7 chore(deps): update dependency ts-node to v10.7.0 (#3140)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-21 17:27:07 +02:00
Juan Picado
c62bc4e538 chore: node 18 on 5.x ci (#3138) 2022-04-21 08:22:04 +02:00
Juan Picado
95212188d4 chore: remove duplication 2022-04-18 19:59:21 +02:00
renovate[bot]
39c7a0905e chore(deps): update dependency fs-extra to v10.1.0 (#3133) 2022-04-18 12:05:06 +02:00
renovate[bot]
fff9905eec chore(deps): update dependency @types/lodash to v4.14.181 (#3134)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-18 09:45:21 +02:00
Juan Picado
b6e1a672c3 chore: upgrade notes config files 2022-04-18 09:10:36 +02:00
Juan Picado
5c650acbb2 chore: improving configuration documentation 2022-04-18 08:55:52 +02:00
renovate[bot]
27035f9403 fix(deps): update dependency dayjs to v1.11.1 (#3131) 2022-04-18 05:33:46 +02:00
renovate[bot]
da01a14e70 feat(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.24 (5.x) (#3130)
* fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.24

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add docs

* chore: format file

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-04-17 23:39:00 +02:00
renovate[bot]
157d5c5ce4 fix(deps): update dependency semver to v7.3.7 (#3121)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 21:43:51 +02:00
renovate[bot]
78b9c8b33e fix(deps): update dependency @verdaccio/readme to v10.3.3 (#3119)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 21:43:34 +02:00
renovate[bot]
decd7f1e5c fix(deps): update dependency verdaccio-audit to v10.2.1 (#3122)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 21:43:18 +02:00
renovate[bot]
8a60050b8b fix(deps): update dependency marked to v4.0.14 (#3120)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 20:15:20 +02:00
renovate[bot]
7ceaa1799c fix(deps): update dependency lru-cache to v7 (#3124)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 20:13:54 +02:00
renovate[bot]
954886d2db fix(deps): update dependency body-parser to v1.20.0 (#3123)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 20:13:04 +02:00
renovate[bot]
0f9d6eca34 fix(deps): update dependency @verdaccio/local-storage to v10.2.1 (#3118)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 20:12:36 +02:00
Juan Picado
f3691b0fcd chore(release): 5.9.0 2022-04-12 17:11:47 +02:00
Tiny
b30ba81b86 feat(web): add a config item to web,let the developer can select whether enable the html cache (#3110)
* Add a config item to web,let the developer can select whether enable the html cache

* Add a config item to web,let the developer can select whether enable the html cache

* chore: move check close to other configuration

* chore: update configuration files to suggest new option on web

* chore: format fix

Co-authored-by: fengdi <fengdi@bbktel.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-04-11 23:00:43 +02:00
renovate[bot]
b963f7db2a fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.23 (#3106) 2022-04-05 19:30:44 +02:00
renovate[bot]
4cc18773b7 fix(deps): update dependency dayjs to v1.11.0 (#3094) 2022-03-28 06:40:25 +02:00
renovate[bot]
a7bbab90f0 chore(deps): update dependency @types/lodash to v4.14.180 (#3085)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-26 12:36:58 +01:00
renovate[bot]
8cee85f811 fix(deps): update dependency body-parser to v1.19.2 (#3087)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-26 12:36:36 +01:00
renovate[bot]
ab4f922ffc chore(deps): update dependency fs-extra to v10.0.1 (#3086)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-26 12:02:06 +01:00
renovate[bot]
48a84093f5 chore(deps): update actions/checkout action (#3083)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-26 12:01:50 +01:00
renovate[bot]
7949a3011e chore(deps): update babel monorepo (#3088)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-26 12:01:31 +01:00
Juan Picado
662a05dc90 chore: remove npm 7 jest 2022-03-26 11:02:55 +01:00
Juan Picado
3f8047a2d0 chore: fix e2e pnpm7 2022-03-24 07:52:02 +01:00
Juan Picado
7e30384456 chore: remove argument pnpm e2e 2022-03-23 20:49:33 +01:00
Juan Picado
d461fdf516 chore(release): 5.8.0 2022-03-12 23:13:17 +01:00
Juan Picado
2ad085a8e2 feat: update ui with new modal banner (#3062) 2022-03-12 23:13:07 +01:00
Juan Picado
5a0611fe9c chore(release): 5.7.1 2022-03-08 18:45:09 +01:00
renovate[bot]
ace754ddff fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.21 (#3050)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-08 18:42:21 +01:00
Juan Picado
0f51a6ced5 fix: missing colors on terminal (#3049) 2022-03-08 18:30:29 +01:00
renovate[bot]
1221ffd512 fix(deps): update dependency dayjs to v1.10.8 (#3036) 2022-03-05 12:35:08 +01:00
renovate[bot]
24830e06e8 fix(deps): update dependency verdaccio-htpasswd to v10.3.0 (#3038) 2022-03-05 12:33:27 +01:00
renovate[bot]
21c66f65c3 fix(deps): update dependency express to v4.17.3 (#3039) 2022-03-05 12:33:14 +01:00
renovate[bot]
2ef97d4847 fix(deps): update dependency minimatch to v5 (#3035)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-05 11:06:50 +01:00
Juan Picado
e88571fa3e chore: enable test e2e pnpm7 (#3033)
* enable test e2e pnpm7

* chore: add npm8

* chore: rename title

* chore: skip flaky tests added note
2022-03-04 21:08:18 +01:00
Juan Picado
db51c6a350 chore(release): 5.7.0 2022-03-04 19:27:15 +01:00
renovate[bot]
87e5e74ea4 fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.20 (#3028)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-03 23:22:28 +01:00
osher
ac45c0b5b2 feature: config control for colors in logs (#3011)
* pass `logs.colors` as `prettyOptions.colorize`

* `prettyPrintOptions` defaults is no concern of `createLogger`

* call it `colors` not to confuse with `pinoPretty.colorize`

* fix hardcoded `true` for `options.colors`

* Support `VERDACCIO_LOGGER_COLORS` overriding env-var

* Update docs for `VERDACCIO_LOGGER_COLORS`

* docs for `VERDACCIO_LOGGER_COLORS`

* docs for `VERDACCIO_LOGGER_COLORS`

* `.isTTY` from `stdout` not `stdin`

both work, but I want to ask if I emit to TTY, not if I consume from TTY.

* .md format

* format

* more format guesses

* declare `PrettyOptionsExtended.colors`

* lint

* docs: `EXPERIMENTAL__` prefix

* logger.ts - prefix `EXPERIMENTAL__`

* Update env.variables.md

* env.variables.md - remove double `_`

* Update logger.ts

* logger.ts - remove double `_`, fix boolean parsing

* env.variables.md - explain boolean parsing

* chore: format

* chore: add format, improve logic

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-03-02 23:41:30 +01:00
Juan Picado
7f04697175 chore(release): 5.6.2 2022-02-27 00:02:51 +01:00
renovate[bot]
7cff3f7693 fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.18 (#3019)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-26 23:51:01 +01:00
renovate[bot]
08b72b4663 fix(deps): update dependency pino to v6.14.0 (#3018)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-26 23:36:43 +01:00
Juan Picado
541aca922e chore(release): 5.6.1 2022-02-26 19:11:46 +01:00
renovate[bot]
f57508d6f3 fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.17 (#3014)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-26 19:08:23 +01:00
Juan Picado
2a6f1d5475 chore(release): 5.6.0 2022-02-15 19:28:14 +01:00
renovate[bot]
8fd8a1659a chore(deps): update dependency verdaccio-memory to v10.2.0 (#2994)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-15 13:21:40 +01:00
renovate[bot]
ea199b229d chore(deps): update dependency @verdaccio/types to v10.3.0 (#2997)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-15 12:34:16 +01:00
renovate[bot]
25b22128b8 fix(deps): update dependency verdaccio-htpasswd to v10.2.0 (#2999)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-15 12:34:04 +01:00
renovate[bot]
60fea02ad1 fix(deps): update dependency @verdaccio/streams to v10.2.0 (#2995) 2022-02-14 23:13:28 +01:00
renovate[bot]
57c4ce5a19 fix(deps): update dependency verdaccio-audit to v10.2.0 (#2998) 2022-02-14 23:13:15 +01:00
renovate[bot]
fee3ac670a fix(deps): update dependency @verdaccio/readme to v10.3.2 (#2984)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-14 22:35:13 +01:00
osher
681dc821aa feat: new environment variable (storage path) (#2993)
* WIP: port PR#2199 to master into 5.x

* port PR#2199 to master to 5.x - env.variables.md

* port PR#2199 to master to 5.x - config.spec

* Update config.spec.ts

* Update config.spec.ts

* fix format

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-02-14 21:05:59 +01:00
renovate[bot]
63fc4d1baf fix(deps): update dependency @verdaccio/commons-api to v10.2.0 (#2986)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-13 12:22:50 +01:00
renovate[bot]
1db0a2ebf5 fix(deps): update dependency @verdaccio/local-storage to v10.2.0 (#2987)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-13 11:53:35 +01:00
renovate[bot]
92dca9887a chore(deps): update dependency verdaccio-auth-memory to v10.2.0 (#2982)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-13 09:54:52 +01:00
renovate[bot]
2cd4a3bb07 fix(deps): update dependency marked to v4.0.12 (#2976)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-07 22:00:45 +01:00
Juan Picado
09e8afcc8c chore(release): 5.5.2 2022-01-27 07:45:14 +01:00
Martin Sander
b964c0d488 fix: re-opening log files using SIGUSR2 (#2966)
by @marvinthepa
2022-01-26 20:25:34 +01:00
Juan Picado
c40d01a0ea chore(release): 5.5.1 2022-01-24 21:25:08 +01:00
Juan Picado
de7713ecc1 fix: remove engines restriction from ui-theme dependency 2022-01-24 21:22:28 +01:00
renovate[bot]
50097976ed fix(deps): update dependency marked to v4 (#2956)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-23 13:17:16 +01:00
renovate[bot]
ac4392a221 fix(deps): update dependency mime to v3 (#2957)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-23 13:12:57 +01:00
Juan Picado
e9902ecd4b chore(release): 5.5.0 2022-01-22 16:27:48 +01:00
Juan Picado
d36b8b1e00 feat: upgrade @verdaccio-ui-theme 2022-01-22 16:18:09 +01:00
Juan Picado
1a7b1ee8ad feat: add new options to the web disable login and pkg managers (#2947) 2022-01-22 10:58:04 +01:00
renovate[bot]
d6415d4dc3 chore(deps): update dependency supertest to v6.2.2 (#2938)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-22 09:50:26 +01:00
renovate[bot]
f9301d1827 chore(deps): update dependency jest-junit to v12.3.0 (#2944) 2022-01-21 21:54:07 +01:00
renovate[bot]
3a9d773415 fix(deps): update dependency verdaccio-audit to v10.1.1 (#2935) 2022-01-20 23:58:32 +01:00
renovate[bot]
8a75f8cc36 fix(deps): update dependency @verdaccio/readme to v10.2.1 (#2933)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 22:30:01 +01:00
renovate[bot]
e2eb6ce27f fix(deps): update dependency async to v3.2.3 (#2934)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 19:57:56 +01:00
renovate[bot]
8c7e39e8f3 fix(deps): update dependency @verdaccio/local-storage to v10.1.1 (#2932)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 19:05:03 +01:00
renovate[bot]
6110e51a83 chore(deps): update babel monorepo (#2929)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 18:28:18 +01:00
renovate[bot]
881367925c chore(deps): update dependency @types/express-serve-static-core to v4.17.28 (#2914)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-19 08:03:46 +01:00
renovate[bot]
b2bef8dfbc chore(deps): update dependency @octokit/rest to v18.12.0 (#2921)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-19 07:59:12 +01:00
renovate[bot]
eb65ba6e11 chore(deps): update dependency @types/http-errors to v1.8.2 (#2915)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-16 10:20:26 +01:00
renovate[bot]
ce3aa50d9a chore(deps): update dependency selfsigned to v1.10.14 (#2907)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-16 09:40:39 +01:00
renovate[bot]
d9cebcdbd9 chore(deps): update dependency @babel/register to v7.16.9 (#2911)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-16 09:12:56 +01:00
Juan Picado
b79266d54e feat: use backward compatible UI from v6 on v5 (#2912)
* feat: upgrade ui theme plugin v4

* chore: fix e2e

* fix: format

* chore: update theme ui
2022-01-15 20:51:14 +01:00
renovate[bot]
dad89bc72c chore(deps): update dependency @types/minimatch to v3.0.5 (#2894)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-13 20:21:15 +01:00
renovate[bot]
bd883cbe2b chore(deps): update dependency @types/serve-static to v1.13.10 (#2906)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-12 21:18:48 +01:00
renovate[bot]
c3849b314a chore(deps): update dependency @types/semver to v7.3.9 (#2904) 2022-01-11 18:32:07 +01:00
renovate[bot]
2bced91cd0 chore(deps): update babel monorepo to v7.16.8 (#2901) 2022-01-11 17:42:24 +01:00
renovate[bot]
511fc8f1e0 chore(deps): update dependency @types/jest to v26.0.24 (#2892)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-11 00:11:30 +01:00
renovate[bot]
ad938ac795 chore(deps): update dependency @types/request to v2.48.8 (#2895)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-10 22:21:44 +01:00
renovate[bot]
a99ea00c3a chore(deps): update actions/checkout action to v2.4.0 (#2896)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-10 22:21:30 +01:00
renovate[bot]
6ca7cced1e chore(deps): update actions/setup-node action to v2.5.1 (#2897)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-10 22:20:47 +01:00
renovate[bot]
9e27aa9d3c chore(deps): update dependency @types/lodash to v4.14.178 (#2893)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-10 00:16:37 +01:00
renovate[bot]
63c2ec1f89 chore(deps): update dependency @types/express to v4.17.13 (#2889) 2022-01-09 23:44:54 +01:00
renovate[bot]
bd738ecf60 fix(deps): update dependency fast-safe-stringify to v2.1.1 (#2891) 2022-01-09 23:21:08 +01:00
renovate[bot]
a6131f0748 chore(deps): update dependency @types/express-serve-static-core to v4.17.27 (#2890)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-09 22:44:02 +01:00
Juan Picado
22cfea0907 fix: update docker to v14.18.2 (#2888) 2022-01-09 22:15:12 +01:00
Juan Picado
ec98159c3c fix: update babel and core dependencies (#2887) 2022-01-09 22:02:47 +01:00
Juan Picado
558fcafc71 build: format code prettier, enable ci (#2886)
* fix: format code prettier, enable ci

* chore: add trivago import prettier pluggin
2022-01-09 20:51:50 +01:00
renovate[bot]
23d0bd7056 fix(deps): update all non-major linting dependencies (5.x) (#2885)
* fix(deps): update all non-major linting dependencies

* fix lint issues

* chore: increase timeout

* chore: increase timeout

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-01-09 20:31:26 +01:00
renovate[bot]
1ec77e7605 fix(deps): update dependency pino to v6.13.4 (#2829) 2021-12-31 15:08:57 +01:00
Juan Picado
7423e3d008 chore(release): 5.4.0 2021-12-24 19:15:15 +01:00
Juan Picado
5b1264c733 feat: allow override user rate limit and user agent (#2803)
* feat: allow override user rate limit

- improve user_agent config allow string

* chore: fix tests

* chore: refactor userRateLimit

* chore: remove comment

* chore: optional prop

* chore: refactor limiter

* chore: refactor endpoints

* chore: fix undefined

* chore: fix params

* chore: fix params

* chore: update ui

* chore: refactor limiter

* chore: fix tests

* chore: fix test
2021-12-24 19:04:15 +01:00
Juan Picado
f64e403f0a feat: add rate limit to user api endpoints (#2800) (#2799)
* feat: add rate limit to user api endpoints

* chore: fix test

* chore: refactor token endpoint

* chore: refactor
2021-12-24 01:07:26 +01:00
Juan Picado
c91d6beb8b feat: add rate limit to web endpoints (#2799)
* feat: add rate limit to web endpoints

* fix: types express conflict

* fix: undefined issue

* fix: tests
2021-12-23 17:35:31 +01:00
Juan Picado
b2b3804f87 build: enable Node 17 on CI and npm8 on E2E (#2795)
* chore: increase ci e2e settings

* fix: ci for node 17

* chore: restore versions

* chore: fix tests

* chore: fix tests

* chore: fix domain

* chore: restore yarn on angular

* chore: rename tests

* chore: fix syntax

* chore: disable yarn angular
2021-12-23 00:14:53 +01:00
Juan Picado
e5d79ce8f0 feat: user agent is the client by default (#2793)
* feat: user agent is the client by default

* chore: get user agent fix

* chore: disable x-powered-by
2021-12-21 23:09:31 +01:00
renovate[bot]
46e583f683 fix(deps): update dependency body-parser to v1.19.1 (#2788)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-21 20:33:03 +01:00
renovate[bot]
c5c0ef8750 fix(deps): update dependency @verdaccio/commons-api to v10.1.0 (#2789)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-21 17:27:03 +01:00
Juan Picado
fd3ad1e546 feat: add cache-control header to endpoints (#2791)
Add no cache to endpoints that returns tokens in the body
2021-12-20 23:11:17 +01:00
Juan Picado
1c17d0986e feat: jwt default time new set (#2787)
Reduce 7 days to 1 hour as expiration time to improve security measures.
2021-12-20 08:09:18 +01:00
Juan Picado
e1a9bb46ff chore: add docker all hands talk 2021-12-16 18:29:04 +01:00
Juan Picado
e37e9fe15c chore(release): 5.3.2 2021-12-16 17:30:26 +01:00
贾顺名(Jarvis)
b5ac3c0f28 fix: publish with deprecated field (#2771)
* fix: publish with deprecated field by @Jiasm 

When publish with deprecated field in `package.json`, that will make all old versions miss.

Examples:

I have package@1.0.0 and package@1.0.1.

When `npm deprecate package@1.0.0 "xxx"`, Verdaccio will recived:

```json
{
  "name": "module_name",
  "version": {
    "1.0.0": {
      "deprecated": "xxx"
    },
    "1.0.1": {}
  }
}
```

⬆️ This make sense

But then publish new version with @1.0.2.

Verdaccio will recived:

```json
{
  "name": "module_name",
  "version": {
    "1.0.2": {
      "deprecated": "xxx" // if we set this field in package.json
    },
  }
}
```

and that metadata will override package.json, make old version miss.

migrate from #2766

* remove spaces

* fix: ignore empty package case

* fix: cover normal unpublish case

* refactor: Optimize check logic for lazy execution

* test: upgrade Jest Snapshot

* fix: set storage.getPackage `uplinksLook: false`.

* feat: use `_attachments` to distinguish deprecate

* test: rollback test snapshots

* test: rollback jest snapshots

* test: publish new version with deprecate field

* test: remove space
2021-12-16 16:17:52 +01:00
Juan Picado
3b2ec6cbfa chore: update readme 2021-12-15 23:25:26 +01:00
Juan Picado
f575ab767c chore(release): 5.3.1 2021-12-12 00:06:56 +01:00
Juan Picado
29d4551e5b fix: conflict core-js dependency (#2754)
* chore: remove core-js

* fix: update verdaccio core dependencies
2021-12-12 00:06:34 +01:00
Juan Picado
e747b9a3ad chore(release): 5.3.0 2021-12-08 22:29:13 +01:00
coolsp
820c9d5db2 fix: markdown anchor links in package readme.md broken #2712 2021-12-01 23:33:25 +01:00
Juan Picado
60cd25ce4f fix: update pnpm and bum up core deps (#2716) 2021-11-29 15:52:27 +01:00
renovate[bot]
8c074e8f24 fix(deps): update dependency verdaccio-audit to v10.0.3 (#2710)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-28 15:47:50 +01:00
renovate[bot]
74d7d02c39 fix(deps): update dependency @verdaccio/streams to v10.0.1 (#2709)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-28 15:47:35 +01:00
renovate[bot]
41cadccaef fix(deps): update dependency @verdaccio/readme to v10.0.1 (#2708)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-27 18:20:41 +01:00
renovate[bot]
73d565f5f5 fix(deps): update dependency @verdaccio/commons-api to v10.0.2 (#2706)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-27 18:20:21 +01:00
renovate[bot]
8e2884836b fix(deps): update dependency verdaccio-htpasswd to v10.0.1 (#2711) 2021-11-27 17:48:33 +01:00
renovate[bot]
eee19a5f79 fix(deps): update dependency http-errors to v1.8.1 (#2705)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-27 16:57:38 +01:00
Juan Picado
46a4e8e2e0 chore(release): 5.2.2 2021-11-08 10:33:44 +01:00
Juan Picado
0eab3e1746 fix: update python dependency on docker image (#2644) 2021-11-08 10:17:47 +01:00
Juan Picado
4fc5b59eca chore(release): 5.2.1 2021-11-08 09:15:33 +01:00
renovate[bot]
bfa7b34994 chore(deps): update dependency standard-version to v9.3.2 (#2637)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-05 16:59:41 +01:00
renovate[bot]
089796ca47 fix(deps): update dependency mime to v2.6.0 (#2634)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-05 07:17:07 +01:00
renovate[bot]
ef2fbff755 fix(deps): update dependency validator to v13.7.0 (#2635)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-05 07:03:37 +01:00
renovate[bot]
c6458f4ad6 chore(deps): update babel monorepo to v7.16.0 (#2631)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-04 19:47:38 +01:00
renovate[bot]
da5d7e96cb fix(deps): update dependency async to v3.2.2 (#2633)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-04 18:54:33 +01:00
Juan Picado
57bd5169f9 test: system test add logging for debuggin 2021-10-24 10:15:54 +02:00
Juan Picado
80dca8d96e chore(release): 5.2.0 2021-10-24 09:54:57 +02:00
Juan Picado
247a317ca0 feat: upgrade node docker to 14.18.1 (#2579) 2021-10-24 09:54:39 +02:00
renovate[bot]
384b3e2ce5 fix(deps): update dependency pino to v6.13.3 (#2562) 2021-10-24 08:43:00 +02:00
renovate[bot]
69091d15fb fix(deps): update dependency dayjs to v1.10.7 (#2565)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-23 11:34:29 +02:00
renovate[bot]
6a78ae0045 fix(deps): update dependency clipanion to v3.1.0 (#2561)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-22 08:17:32 +02:00
renovate[bot]
5d4e3a65ba chore(deps): update babel monorepo (#2563)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-22 08:00:10 +02:00
Juan Picado
c81458bb0d chore(release): 5.1.6 2021-09-21 20:32:28 +02:00
Juan Picado
9d7ddd9ecd fix: update dependencies security update (#2453) 2021-09-21 20:32:20 +02:00
Juan Picado
b4a5ffe9a0 chore(release): 5.1.5 2021-09-17 22:26:02 +02:00
Juan Picado
360bec9b53 fix: add finish language to ui (#2443) 2021-09-17 22:25:53 +02:00
Juan Picado
b993344c40 chore(release): 5.1.4 2021-09-07 21:21:15 +02:00
Juan Picado
2c590917b1 fix: npm7 audit fix and bulk endpoint (#2426)
* fix: npm7 audit fix and bulk endpoint

* chore: update registry

* chore: update registry
2021-09-07 21:19:44 +02:00
Juan Picado
1308ab295d chore(release): 5.1.3 2021-08-20 08:31:27 +02:00
Juan Picado
d63dcc02fa fix: update docker base image to v14.17.5 2021-08-20 08:30:59 +02:00
Juan Picado
7d9fcfb5e3 chore: disable release note steps 2021-08-20 08:28:41 +02:00
Juan Picado
2e995f5981 fix: update docker and core dependencies (#2375)
* fix: update docker base to node:14.17.5

* fix: update base dependencies

* chore: change to node:14.17.4
2021-08-12 07:56:20 +02:00
weifan she
ecfc4c3304 fix: plugin allow_publish (pkg) got a undefined version (#2315) 2021-08-12 07:41:00 +02:00
VerdaccioBot
a09a041754 Update README.md 2021-08-06 21:35:31 +02:00
Juan Picado
bab7a7f6bc chore(release): 5.1.2 2021-07-14 20:25:44 +02:00
Juan Picado
29240544b1 fix: remove token experiment flag (#2332) 2021-07-14 20:22:15 +02:00
Juan Picado
7180338c44 fix: update dependencies (#2333) 2021-07-14 20:21:41 +02:00
Juan Picado
2bc590895c fix: update docker base image node 14.17.3 2021-07-14 19:57:46 +02:00
Juan Picado
b8f711afab fix: update docker base image node 14.17.1 (#2314)
* fix: update docker base image node 14.17.2

* fix: update docker base image node 14.17.1
2021-07-03 13:09:37 +02:00
Juan Picado
4fe8ddf7c7 fix: update dependencies (#2303) 2021-06-23 19:39:20 +02:00
Juan Picado
b421ed87c4 fix: update dependencies (#2291)
* chore: update deps

* chore: restore jest
2021-06-12 07:59:26 +02:00
Juan Picado
da810f4a18 chore: fix release script (#2289)
* chore: fix release script

* chore: fix lint

* chore: restore file
2021-06-12 07:39:33 +02:00
Juan Picado
f272c11c48 chore(release): 5.1.1 2021-06-12 06:22:51 +02:00
Juan Picado
558dd3f3c6 fix: add logger fatal if fails on startup (#2288)
fix #2287
2021-06-12 06:19:26 +02:00
Juan Picado
38ca095fb0 fix: improve get headers from request #2190 (#2271)
* fix: improve request header handling

* chore: fix test

* chore: apply suggestion
2021-05-26 20:07:13 +02:00
Juan Picado
b5ee7039e3 chore(release): 5.1.0 2021-05-24 08:33:50 +02:00
Juan Picado
f1cfae4d35 chore: remove prepublish 2021-05-24 08:31:00 +02:00
Juan Picado
b2d6f3657a chore: add missing dependency 2021-05-24 08:23:45 +02:00
Juan Picado
2d7d8143e9 chore: remove try catch not need it 2021-05-22 14:49:11 +02:00
Juan Picado
8434cc550f fix: restore using local path web logo (#2270)
* fix: logo loaded locally

* chore: fix lint
2021-05-22 14:46:47 +02:00
Juan Picado
1e4c900dcb fix: update core dependencies (#2269) 2021-05-22 09:57:07 +02:00
Juan Picado
4ed7286bcb feat: update Node.js docker image 14.17.0 (#2247) 2021-05-15 16:54:45 +02:00
Juan Picado
251bd95373 feat: implement search v1 endpoint (#2256)
* feat: implement search v1 endpoint

* add allow_access

* chore: add types

* chore: format

* fix eslint prettier

* chore: add tests

* add tests

* chore: add npm search cli
2021-05-15 16:39:03 +02:00
Juan Picado
6be108917e chore: update dependencies (#2255) 2021-05-14 08:27:54 +02:00
Juan Picado
f168b2512e chore: disable yarn local cache enableGlobalCache (#2254)
* chore: add yarn local  cache

* update list files docker publish

* add example extending with plugins and yarn2
2021-05-14 08:04:19 +02:00
Juan Picado
69d7df20d8 build: enable pnp yarn2 (#2253)
* chore: enable pnp yarn

* chore: ignore pnp

* fix type issues on run eslint

* add missing dependency and fix some errors

* fix most of the errors

some were just disabled, already fixed in master

* add missing jest-config

* update jest@26 align with other deps

* add missing @babel/register

* clean up

* use yarn node

* use yarn node on release

* chore: add husky 6

* chore: add husky 6

* chore: lint-stage

* chore: test

* chore: add hook git

* chore: test

* chore: test

* update deps

* chore: fix commit lint

* fix docker run

* update git ignore
2021-05-13 23:13:57 +02:00
Juan Picado
351ea89df6 chore: update yarn@2.4.1 (#2252)
* feat: update Node.js docker image 14.17.0

* chore: update yarn2

* feat: restore file

* chore: update docker file ignore
2021-05-13 17:41:20 +02:00
Favo Yang
78d04cf9f8 feat: tarball url redirect (#1688)
* feat: tarball url redirect

* fix: handle uplinks

* feat: allow function for config.tarball_url_redirect

* fix:  hasLocalTarball was calling localStream,abort when already aborted

* chore: simplify localStream null check in hasLocalTarball

As requested in PR feedback.

* chore: fix sonarcloud code smell on test

the variable `credentials` was already declared before the tarball url tests.

* fix: move tarball_url_redirect to experiments

Co-authored-by: Gord Lea <johlea@cisco.com>
Co-authored-by: Gord Lea <jgordonlea@gmail.com>
2021-05-03 20:53:00 +02:00
Juan Picado
255650b91a chore(release): 5.0.4 2021-04-28 07:19:25 +02:00
Claude
01c5d2ca27 fix: scoped query support (#2208) 2021-04-28 07:18:30 +02:00
Juan Picado
6fb388e366 chore(release): 5.0.3 2021-04-27 22:33:40 +02:00
Juan Picado
ced47d56fc fix: update @verdaccio/ui-theme (#2207) 2021-04-27 22:28:01 +02:00
Juan Picado
848c0ee499 chore(release): 5.0.2 2021-04-27 19:53:38 +02:00
Claude
d8b62cff53 fix: incorrect sanity check for theme plugin (#2205) 2021-04-27 19:53:12 +02:00
Juan Picado
825c1fc688 Update README.md 2021-04-22 22:55:05 +02:00
Juan Picado
8074bae190 chore: remove workflow
not need it on 5.x
2021-04-21 22:36:05 +02:00
Juan Picado
aae3e4356b chore: test on node 16 2021-04-21 21:44:12 +02:00
Juan Picado
6a1cdeaec4 chore(release): 5.0.1 2021-04-10 11:13:03 +02:00
Juan Picado
782dd1ca93 fix: logo and favicon configuration (#2180) 2021-04-10 11:09:50 +02:00
Juan Picado
e56fd19968 chore: prepare 5.x 2021-04-09 18:38:26 +02:00
3769 changed files with 201696 additions and 414674 deletions

View File

@@ -1,18 +0,0 @@
{
"presets": [
[
"@babel/env",
{
"targets": {
"node": 12
}
}
],
"@babel/typescript"
],
"ignore": ["**/*.d.ts"],
"plugins": [
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator"
]
}

View File

@@ -1,8 +0,0 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/master/docs/common-questions.md)

View File

@@ -1,6 +0,0 @@
---
'@verdaccio/ui-components': patch
'@verdaccio/ui-theme': patch
---
- fixed login state when token is expired (@ku3mi41 in #3980)

View File

@@ -1,44 +0,0 @@
---
'@verdaccio/api': major
'@verdaccio/auth': major
'@verdaccio/cli': major
'@verdaccio/config': major
'@verdaccio/core': major
'@verdaccio/file-locking': major
'@verdaccio/tarball': major
'@verdaccio/types': major
'@verdaccio/url': major
'@verdaccio/hooks': major
'@verdaccio/loaders': major
'@verdaccio/logger': major
'@verdaccio/logger-7': major
'@verdaccio/logger-commons': major
'@verdaccio/logger-prettify': major
'@verdaccio/middleware': major
'@verdaccio/node-api': major
'verdaccio-audit': major
'verdaccio-auth-memory': major
'verdaccio-htpasswd': major
'@verdaccio/local-storage': major
'verdaccio-memory': major
'@verdaccio/ui-theme': major
'@verdaccio/proxy': major
'@verdaccio/search': major
'@verdaccio/server': major
'@verdaccio/server-fastify': major
'@verdaccio/signature': major
'@verdaccio/cli-standalone': major
'@verdaccio/store': major
'docusaurus-plugin-contributors': major
'@verdaccio/eslint-config': major
'@verdaccio/test-helper': major
'customprefix-auth': major
'@verdaccio/ui-components': major
'@verdaccio/utils': major
'verdaccio': major
'@verdaccio/web': major
'@verdaccio/website': major
'@verdaccio/local-publish': patch
---
feat!: bump to v7

View File

@@ -1,6 +0,0 @@
---
'@verdaccio/ui-theme': patch
---
- added `onClick` prop to `Link` component in @verdaccio/ui-components. (@moglerdev in #3989)
- resolved issue in the `Package` component where the download button was incorrectly opening a new tab to the homepage. (@moglerdev in #3989)

View File

@@ -1,18 +0,0 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [
[
"verdaccio",
"@verdaccio/cli",
"@verdaccio/core",
"@verdaccio/config",
"@verdaccio/node-api",
"@verdaccio/ui-theme"
]
],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch"
}

View File

@@ -1,6 +0,0 @@
---
'@verdaccio/ui-theme': patch
'@verdaccio/ui-components': patch
---
fix: display labels for engine versions

View File

@@ -1,15 +0,0 @@
---
'@verdaccio/ui-theme': minor
'@verdaccio/ui-components': minor
---
feat: ui improvements
Some UI improvements
- download progress indicator: https://github.com/verdaccio/verdaccio/discussions/4068
- fix dark mode and readme css support https://github.com/verdaccio/verdaccio/discussions/3942 https://github.com/verdaccio/verdaccio/discussions/3467
- fix global for yarn packages and add version to the packages on copy
- feat: hide deprecated versions option
- fix: improve deprecated package style
- feat: display deprecated versions

View File

@@ -1,18 +0,0 @@
---
'@verdaccio/config': minor
'@verdaccio/core': minor
'@verdaccio/file-locking': minor
'@verdaccio/tarball': minor
'@verdaccio/url': minor
'@verdaccio/logger-7': minor
'@verdaccio/logger-commons': minor
'@verdaccio/logger-prettify': minor
'@verdaccio/middleware': minor
'verdaccio-audit': minor
'verdaccio-htpasswd': minor
'@verdaccio/search': minor
'@verdaccio/signature': minor
'@verdaccio/utils': minor
---
restore legacy support

View File

@@ -1,36 +0,0 @@
---
'@verdaccio/api': major
'@verdaccio/auth': major
'@verdaccio/cli': major
'@verdaccio/config': major
'@verdaccio/core': major
'@verdaccio/file-locking': major
'@verdaccio/tarball': major
'@verdaccio/types': major
'@verdaccio/url': major
'@verdaccio/hooks': major
'@verdaccio/loaders': major
'@verdaccio/logger': major
'@verdaccio/logger-commons': major
'@verdaccio/logger-prettify': major
'@verdaccio/middleware': major
'@verdaccio/node-api': major
'verdaccio-audit': major
'verdaccio-auth-memory': major
'verdaccio-htpasswd': major
'@verdaccio/local-storage': major
'verdaccio-memory': major
'@verdaccio/ui-theme': major
'@verdaccio/proxy': major
'@verdaccio/search': major
'@verdaccio/server': major
'@verdaccio/server-fastify': major
'@verdaccio/signature': major
'@verdaccio/store': major
'@verdaccio/ui-components': major
'@verdaccio/utils': major
'verdaccio': major
'@verdaccio/web': major
---
update major dependencies, remove old nodejs support

View File

@@ -1,72 +0,0 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"@verdaccio/test-cli-commons": "1.1.0",
"@verdaccio/e2e-cli-npm6": "1.0.1",
"@verdaccio/e2e-cli-npm7": "1.0.1",
"@verdaccio/e2e-cli-npm8": "1.0.1",
"@verdaccio/e2e-cli-npm9": "1.0.1",
"@verdaccio/e2e-cli-pnpm6": "1.0.1",
"@verdaccio/e2e-cli-pnpm7": "1.0.1",
"@verdaccio/e2e-cli-pnpm8": "1.0.1",
"@verdaccio/e2e-cli-yarn1": "1.0.1",
"@verdaccio/e2e-cli-yarn2": "1.0.1",
"@verdaccio/e2e-cli-yarn3": "1.0.1",
"@verdaccio/e2e-cli-yarn4": "1.0.1",
"@verdaccio/e2e-ui": "2.0.0",
"@verdaccio/api": "6.0.0",
"@verdaccio/auth": "6.0.0",
"@verdaccio/cli": "6.0.0",
"@verdaccio/config": "6.0.0",
"@verdaccio/core": "6.0.0",
"@verdaccio/file-locking": "11.0.0",
"@verdaccio/tarball": "11.0.0",
"@verdaccio/types": "11.0.0",
"@verdaccio/url": "11.0.0",
"@verdaccio/hooks": "6.0.0",
"@verdaccio/loaders": "6.0.0",
"@verdaccio/logger": "6.0.0",
"@verdaccio/logger-7": "6.0.0",
"@verdaccio/logger-commons": "6.0.0",
"@verdaccio/logger-prettify": "6.0.0",
"@verdaccio/middleware": "6.0.0",
"@verdaccio/node-api": "6.0.0",
"verdaccio-audit": "11.0.0",
"verdaccio-auth-memory": "11.0.0",
"verdaccio-htpasswd": "11.0.0",
"@verdaccio/local-storage": "11.0.0",
"verdaccio-memory": "11.0.0",
"@verdaccio/ui-theme": "6.0.0",
"@verdaccio/proxy": "6.0.0",
"@verdaccio/search": "6.0.0",
"@verdaccio/server": "6.0.0",
"@verdaccio/server-fastify": "6.0.0",
"@verdaccio/signature": "6.0.0",
"@verdaccio/cli-standalone": "6.0.0",
"@verdaccio/store": "6.0.0",
"docusaurus-plugin-contributors": "1.0.1",
"@verdaccio/eslint-config": "2.0.0",
"@verdaccio/test-helper": "2.0.0",
"@verdaccio/crowdin-translations": "1.0.0",
"customprefix-auth": "1.0.0",
"@verdaccio/ui-components": "2.0.0",
"@verdaccio/utils": "6.0.0",
"verdaccio": "6.0.0",
"@verdaccio/web": "6.0.0",
"@verdaccio/website": "5.20.2",
"@verdaccio/local-publish": "0.0.1"
},
"changesets": [
"angry-trees-tie",
"breezy-mayflies-pull",
"chilled-carrots-guess",
"eight-squids-judge",
"long-jars-collect",
"old-turkeys-heal",
"perfect-chairs-act",
"shiny-worms-retire",
"shy-garlics-cry",
"weak-fans-explain"
]
}

View File

@@ -1,5 +0,0 @@
---
'@verdaccio/search': patch
---
fix: keyword undefined errors

View File

@@ -1,5 +0,0 @@
---
'@verdaccio/signature': patch
---
chore: export signature options type

View File

@@ -1,5 +0,0 @@
---
'@verdaccio/server': patch
---
fix: Avoid 404 error when getting favicon from root

View File

@@ -8,22 +8,22 @@
.*
# you can add exceptions like in .gitignore to maintain a whitelist:
# e.g.
!.babelrc
!.eslintrc
!.prettierrc.json
!.prettierignore
!babel.config.js
!eslintrc.js
!.prettierrc
!.eslintignore
!.stylelintrc
!.jest.config.js
!.jestEnvironment.js
!.yarnrc.yml
!.yarn/releases/yarn-*.cjs
!.yarn/plugins/*
!.pnp.js
# do not copy over node_modules we will run `pnpm install` anyway
# just in case, yarn 2 pnp is enabled
node_modules
website
jest
docs
contrib
docker-examples
website
systemd
.husky/
.git/
# output from test runs and similar things
*.log
@@ -33,7 +33,21 @@ coverage/
# IDE config files
jsconfig.json
*.iml
# let's not get too recursive ;)
Dockerfile*
docker-compose*.yaml
.github/
.husky/
*.log
coverage/
.vscode/
*.md
contrib/
docs/
docker-examples/
systemd/
assets/
jest*.js
test/
wiki/
debug/

View File

@@ -7,7 +7,6 @@ end_of_line = lf
insert_final_newline = true
# 2 space indentation
[{.,}*.{ts,tsx,js,jsx,yml,yaml}]
[{.,}*.{js,jsx,yml,yaml}]
indent_style = space
indent_size = 2
quote_type = single

View File

@@ -1,20 +1,25 @@
**/fixtures/**
**/mock/store/**
**/partials/**
**/types/custom.d.ts
build/
# files
node_modules
coverage/
node_modules/
static/
website/
wiki/
dist/
docs/
test/functional/store/*
docker-examples/**/lib/**/*.js
test/cli/e2e-yarn4/bin/yarn-4.0.0-rc.14.cjs
yarn.js
# storybook
packages/ui-components/storybook-static
dist.js
bundle.js
static/
flow-typed/
website/
build/
Dockerfile
test/unit/partials/
types/custom.d.ts
LICENSE
.pnp.js
# extensions
*.md
*.lock
*.yaml
*.rpi
*.html
*.scss
*.png
*.jpg
*.sh
*.ico

View File

@@ -1,3 +0,0 @@
module.exports = {
extends: ['@verdaccio/eslint-config'],
};

199
.gitattributes vendored
View File

@@ -1,199 +0,0 @@
## GITATTRIBUTES FOR WEB PROJECTS
#
# These settings are for any web project.
#
# Details per file setting:
# text These files should be normalized (i.e. convert CRLF to LF).
# binary These files are binary and should be left untouched.
#
# Note that binary is a macro for -text -diff.
######################################################################
# Auto detect
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
* text=lf
# Source code
*.bash text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.coffee text eol=lf
*.css text eol=lf
*.htm text diff=html
*.html text diff=html
*.inc text eol=lf
*.ini text eol=lf
*.js text eol=lf
*.json text eol=lf
*.jsx text eol=lf
*.less text eol=lf
*.ls text eol=lf
*.map text -diff
*.od text eol=lf
*.onlydata text eol=lf
*.php text diff=php
*.pl text eol=lf
*.ps1 text eol=crlf
*.py text diff=python
*.rb text diff=ruby
*.sass text eol=lf
*.scm text eol=lf
*.scss text diff=css
*.sh text eol=lf
*.sql text eol=lf
*.styl text eol=lf
*.tag text eol=lf
*.ts text eol=lf
*.tsx text eol=lf
*.xml text eol=lf
*.xhtml text diff=html
# Docker
Dockerfile text eol=lf
# Documentation
*.ipynb text eol=lf
*.markdown text eol=lf
*.md text eol=lf
*.mdwn text eol=lf
*.mdown text eol=lf
*.mkd text eol=lf
*.mkdn text eol=lf
*.mdtxt text eol=lf
*.mdtext text eol=lf
*.txt text eol=lf
AUTHORS text eol=lf
CHANGELOG text eol=lf
CHANGES text eol=lf
CONTRIBUTING text eol=lf
COPYING text eol=lf
copyright text eol=lf
*COPYRIGHT* text eol=lf
INSTALL text eol=lf
license text eol=lf
LICENSE text eol=lf
NEWS text eol=lf
readme text eol=lf
*README* text eol=lf
TODO text eol=lf
# Templates
*.dot text eol=lf
*.ejs text eol=lf
*.haml text eol=lf
*.handlebars text eol=lf
*.hbs text eol=lf
*.hbt text eol=lf
*.jade text eol=lf
*.latte text eol=lf
*.mustache text eol=lf
*.njk text eol=lf
*.phtml text eol=lf
*.tmpl text eol=lf
*.tpl text eol=lf
*.twig text eol=lf
*.vue text eol=lf
# Configs
*.cnf text eol=lf
*.conf text eol=lf
*.config text eol=lf
.editorconfig text eol=lf
.env text eol=lf
.gitattributes text eol=lf
.gitconfig text eol=lf
.htaccess text eol=lf
*.lock text -diff
package-lock.json text -diff
*.toml text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
browserslist text eol=lf
Makefile text eol=lf
makefile text eol=lf
# Heroku
Procfile text eol=lf
# Graphics
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
*.gifv binary
*.ico binary
*.jng binary
*.jp2 binary
*.jpg binary
*.jpeg binary
*.jpx binary
*.jxr binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
# SVG treated as an asset (binary) by default.
*.svg text eol=lf
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary
# Audio
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary
# Video
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.ogv binary
*.swc binary
*.swf binary
*.webm binary
# Archives
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary
# Fonts
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary
# Executables
*.exe binary
*.pyc binary
# RC files (like .babelrc or .eslintrc)
*.*rc text eol=lf
# Ignore files (like .npmignore or .gitignore)
*.*ignore text eol=lf

View File

@@ -6,31 +6,10 @@ title: ''
assignees: ''
---
<!-- PLEASE READ THIS:
- If you are not sure is a bug, OPEN a DISCUSSION, if is a legitimate bug, is easy to create a bug from a discussion.
- Empty reports won't be considered and eventually be closed by a bot.
- Include debugging notes will help to fix it faster, HOW TO: https://github.com/verdaccio/verdaccio/wiki/Debugging-Verdaccio
- If you remove this template, ticket will be closed immediately.
- No English perfect is required, use public translators if is need it, we will do our best to help you.
- Extra bonus: The most complete this report is delivered, the faster you will get a response.
- Extra bonus: include screenshots, logs (remove sensitive data).
- If you are willing to fix it, there is a checkbox at the bottom.
-->
**Your Environment**
<!-- bug below the version 5.x will be closed, see SECURITY.md for more details -->
* **verdaccio version**: 5.x.x
* **node version** [12.x.x, 14.x.x]:
* **package manager**: [npm@7, pnpm@6, yarn@2]
* **os**: [mac, windows@10, linux]
* **platform**: [npm, docker, helm, other]
**Describe the bug**
<!-- A clear and concise description of what the bug is. -->
**To Reproduce**
<!-- IMPORTANT:
- How to reproduce the issue
- Steps to reproduce the issue
@@ -39,11 +18,9 @@ Be aware, the lack of reproducible steps the issue might cause your ticket to be
-->
**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
**Screenshots, server logs, package manager log**
**Screenshots**
<!-- If applicable, add screenshots to help explain your problem. -->
**Configuration File (cat ~/.config/verdaccio/config.yaml)**
@@ -51,21 +28,16 @@ Be aware, the lack of reproducible steps the issue might cause your ticket to be
<!-- Please be careful do not leak any sensitive information, remove tokens -->
**Environment information**
<!-- Please paste the results of running `verdaccio --info` -->
**Debugging output**
- `$ NODE_DEBUG=request verdaccio` display request calls (verdaccio <--> uplinks)
- `$ DEBUG=verdaccio* verdaccio` enable extreme verdaccio debug mode (verdaccio api)
- `$ npm -ddd` prints:
- `$ npm config get registry` prints:
**Contribute to Verdaccio**
- [ ] I'm willing to fix this bug 🥇
- `$ NODE_DEBUG=request verdaccio` display request calls (verdaccio <--> uplinks)
- `$ DEBUG=express:* verdaccio` enable extreme verdaccio debug mode (verdaccio api)
- `$ npm -ddd` prints:
- `$ npm config get registry` prints:
<!--
IMPORTANT: please do not attach external files, all content should be visible from any device.
-->

View File

@@ -7,5 +7,8 @@ contact_links:
url: https://github.com/verdaccio/verdaccio/security/policy
about: I want to report a security vulnerability
- name: Chat 🏘
url: https://discord.gg/7qWJxBf
about: Quick question? Try out Discord chat, you can get faster feedback
url: http://chat.verdaccio.org
about: For a quick question you should do it through our community chat
- name: User Interface Report 👩🏼‍🎨👨🏼‍🎨
url: https://github.com/verdaccio/ui/issues/new/choose
about: Any report related with the User Interface should be posted in another repository

View File

@@ -1,24 +1,21 @@
---
name: 'Feature Request 🔮'
name: "Feature Request \U0001F52E"
about: You want a feature request.
title: ''
labels: 'topic: feature request'
assignees: ''
---
<!--
IMPORTANT: If you don't have an action plan, please consider create a DISCUSSION (idea) instead for an open a feature request issue.
https://github.com/verdaccio/verdaccio/discussions/new
Verdaccio is a project addressed for voluntaries, if you appreciate this project consider to donate.
1$/5$ or custom amount single contribution
or monthly
1$/month - minimal contribution
5$/month - nice contribution
500$ - help to promote this project, marketing, stickers.
2000$/year - sponsor status, your company logo will be in our readme, meetups talks and your request will have high priority
https://github.com/sponsors/verdaccio
https://opencollective.com/verdaccio
As reminder, the Open Source must be sustainable.
-->

View File

@@ -5,21 +5,23 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: 'github-actions'
directory: '/'
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: 'weekly'
interval: "weekly"
# Maintain dependencies for npm
- package-ecosystem: 'npm'
directory: '/'
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: 'daily'
allow:
- dependency-name: '@verdaccio/*'
- dependency-name: 'verdaccio-*'
interval: "daily"
allow:
- dependency-name: "@verdaccio/*"
- dependency-name: "verdaccio-*"
assignees:
- 'verdacciobot'
- "verdacciobot"
labels:
- 'bot: dependencies'
- "bot: dependencies"

View File

@@ -1,39 +0,0 @@
name: E2E Docker Proxy Plugins Test
on:
workflow_dispatch:
push:
branches:
- 'master'
schedule:
# run every sunday
- cron: '0 0 * * 0'
jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: Start containers
run: docker-compose -f "./e2e/docker/docker-build-install-plugin/docker-compose.yaml" up -d --build
- name: Install node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: 18
- name: verdaccio cli
run: npm install -g verdaccio --registry=http://localhost:4873
- name: gastby cli
run: npm install -g gatsby-cli --registry http://localhost:4873
- name: netlify cli
run: npm install -g netlify-cli --registry http://localhost:4873
- name: angular cli
run: npm install -g @angular/cli --registry http://localhost:4873
- name: Stop containers
if: always()
run: docker-compose -f "./e2e/docker/docker-build-install-plugin/docker-compose.yaml" down

View File

@@ -1,131 +0,0 @@
on:
schedule:
- cron: '0 3 * * 5'
pull_request:
branches:
- '**'
name: 'E2E Angular CLI with verdaccio'
jobs:
# todo: fix yarn global issue, cannot find ng
# yarn:
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, windows-latest]
#
# name: '${{ matrix.os }} / yarn:angular example'
# runs-on: ${{ matrix.os }}
#
# steps:
# - uses: actions/checkout@v2.3.1
#
# - name: 'Use Node.js 10.x'
# uses: actions/setup-node@v2.1.1
# with:
# node-version: 10.x
# - name: Install Dependencies
# run: yarn install --pure-lockfile
# - name: 'Run verdaccio in the background'
# run: |
# nohup node ./scripts/run-verdaccio.js &
# - name: 'Ping to verdaccio'
# run: |
# npm ping --registry http://localhost:4873
# - name: 'Running the integration test'
# run: |
# source scripts/e2e-setup-ci.sh
# yarn init --yes
#
# yarn global add @angular/cli
# which nodemon
# ng new verdaccio-angular --interactive=false
#
# cd verdaccio-angular
# echo "registry=http://localhost:4873" > ~/.npmrc
# yarn add @angular-devkit/core@next @babel/preset-env @babel/core -D
#
# ng build --aot
npm:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: '${{ matrix.os }} / npm:angular example'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.1
- name: 'Use Node.js 10.x'
uses: actions/setup-node@v2.1.1
with:
node-version: 10.x
- name: 'install latest npm'
run: npm i -g npm
- name: Install Dependencies
run: yarn install --pure-lockfile
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
echo "registry=http://localhost:4873" > ~/.npmrc
npm config set loglevel="http"
npm config set fetch-retries="5"
npm config set fetch-retry-factor="50"
npm config set fetch-retry-mintimeout="20000"
npm config set fetch-retry-maxtimeout="80000"
npm install -g @angular/cli
ng new verdaccio-angular --interactive=false
cd verdaccio-angular
npm install @angular-devkit/core@next @babel/preset-env @babel/core -D
npm run ng build --aot
# pnpm throws errors worth to check why
# pnpm:
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, windows-latest]
#
# name: '${{ matrix.os }} / pnpm:angular example'
# runs-on: ${{ matrix.os }}
#
# steps:
# - uses: actions/checkout@v2.3.1
#
# - name: 'Use Node.js 10.x'
# uses: actions/setup-node@v2.1.1
# with:
# node-version: 10.x
# - name: 'install latest pnpm'
# run: npm i -g pnpm
# - name: Install Dependencies
# run: yarn install --pure-lockfile
# - name: 'Run verdaccio in the background'
# run: |
# nohup node ./scripts/run-verdaccio.js &
# - name: 'Ping to verdaccio'
# run: |
# pnpm ping --registry http://localhost:4873
# - name: 'Running the integration test'
# run: |
# source scripts/e2e-setup-ci.sh
# pnpm init --force
#
# pnpm install -g @angular/cli
# ng new verdaccio-angular --interactive=false
#
# cd verdaccio-angular
# echo "registry=http://localhost:4873" > ~/.npmrc
# pnpm install @angular-devkit/core@next @babel/preset-env @babel/core -D
#
# pnpm run ng build --aot

View File

@@ -1,49 +0,0 @@
on:
schedule:
- cron: '0 3 * * 5'
pull_request:
branches:
- '**'
name: 'E2E Gatsby.js CLI with verdaccio'
jobs:
npm:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: '${{ matrix.os }} / npm:gatsby example'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.3
- name: 'Use Node.js 14.x'
uses: actions/setup-node@v2.1.5
with:
node-version: 14.x
- name: 'install latest npm'
run: npm i -g npm@latest-6
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
echo "registry=http://localhost:4873
loglevel="silent"
fetch-retries=10
fetch-retry-factor=2
fetch-retry-mintimeout=10000
fetch-retry-maxtimeout=80000" > ~/.npmrc
npm config list
npm i -g gatsby
gatsby new my-gatsby
cd my-gatsby
npm run build

View File

@@ -1,121 +0,0 @@
on:
schedule:
- cron: '0 3 * * 5'
pull_request:
branches:
- '**'
name: 'E2E Jest with verdaccio'
jobs:
yarn:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: '${{ matrix.os }} / yarn:jest example'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.1
- name: 'Use Node.js 10.x'
uses: actions/setup-node@v2.1.1
with:
node-version: 10.x
- name: Install Dependencies
run: yarn install --pure-lockfile
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
yarn init --yes
yarn add jest --registry http://localhost:4873
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
yarn jest pass.test.js
yarn add left-pad --registry http://localhost:4873 --verbose
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
yarn jest module.test.js
npm:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: '${{ matrix.os }} / npm:jest example'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.1
- name: 'Use Node.js 10.x'
uses: actions/setup-node@v2.1.1
with:
node-version: 10.x
- name: 'install latest npm'
run: npm i -g npm
- name: Install Dependencies
run: yarn install --pure-lockfile
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
npm init --force
npm install jest --registry http://localhost:4873
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
yarn jest pass.test.js
yarn add left-pad --registry http://localhost:4873 --verbose
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
yarn jest module.test.js
pnpm:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: '${{ matrix.os }} / pnpm:jest example'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.1
- name: 'Use Node.js 10.x'
uses: actions/setup-node@v2.1.1
with:
node-version: 10.x
- name: 'install latest pnpm'
run: npm i -g pnpm
- name: Install Dependencies
run: yarn install --pure-lockfile
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js &
- name: 'Ping to verdaccio'
run: |
pnpm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
pnpm init --force
pnpm install jest --registry http://localhost:4873
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
yarn jest pass.test.js
yarn add left-pad --registry http://localhost:4873 --verbose
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
yarn jest module.test.js

View File

@@ -1,13 +0,0 @@
name: Test local registry for js vulnerabilities
on:
schedule:
- cron: '0 4 * * 4'
jobs:
security:
runs-on: ubuntu-latest
steps:
- name: Test for public javascript library vulnerabilities
uses: lirantal/is-website-vulnerable@1.15.10
with:
scan-url: 'https://registry.verdaccio.org'

View File

@@ -1,35 +0,0 @@
name: Canary Release to Verdaccio
on:
pull_request:
paths:
- .github/workflows/release-canary.yml
- 'packages/**'
- 'package.json'
- 'lerna.json'
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node (latest)
uses: actions/setup-node@v1
with:
node_version: 13
- name: Install
run: yarn --frozen-lockfile
- name: Clean
run: yarn clean
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Publish
run: |
echo "//registry.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc
git update-index --assume-unchanged .npmrc
yarn publish:canary

14
.github/lock.yml vendored
View File

@@ -13,10 +13,10 @@ lockLabel: false
lockComment: >
🤖This thread has been automatically locked 🔒 since there has not been
any recent activity after it was closed.
We lock tickets after 90 days with the idea to encourage you to open a ticket with new fresh data
and to provide you better feedback 🤝and better visibility 👀.
If you consider, you can attach this ticket 📨 to the new one as a reference for better context.
Thanks for being a part of the Verdaccio community! 💘
@@ -26,10 +26,10 @@ lockComment: >
# Optionally, specify configuration settings just for `issues` or `pulls`
issues:
exemptLabels:
- help-wanted
lockLabel: outdated
exemptLabels:
- help-wanted
lockLabel: outdated
pulls:
daysUntilLock: 90
lockLabel: outdated
daysUntilLock: 90
lockLabel: outdated

18
.github/stale.yml vendored
View File

@@ -1,7 +1,7 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 365
daysUntilStale: 15
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 500
daysUntilClose: 10
# Issues with these labels will never be considered stale
exemptLabels:
- dev: high priority
@@ -10,17 +10,17 @@ exemptLabels:
- issue: bug
- dev: discuss
# Label to use when marking an issue as stale
staleLabel: 'issue: wontfix'
staleLabel: issue: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
Hi pal 👋🏼!
Hi pal 👋🏼!
This issue has gone quiet 😶.
This issue has gone quiet 😶.
We get a lot of issues, so we currently close issues after 180 days of inactivity. Its been at least 90c days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add/suggest the label "discuss" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out [https://github.com/verdaccio/contributing](https://github.com/verdaccio/contributing) for more information about opening PRs, triaging issues, and contributing!
We get a lot of issues, so we currently close issues after 25 days of inactivity. Its been at least 15 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add/suggest the label "discuss" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out [https://github.com/verdaccio/contributing](https://github.com/verdaccio/contributing) for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Verdaccio community! 💘
Thanks for being a part of the Verdaccio community! 💘
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false

View File

@@ -1,69 +0,0 @@
name: Changesets
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- master
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
# Update package versions from changesets.
version:
timeout-minutes: 14
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio'
steps:
- name: checkout code repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
env:
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
- name: install pnpm
run: npm i pnpm@8.9.0 -g
env:
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: setup pnpm config registry
run: pnpm config set registry https://registry.npmjs.org
- name: install dependencies
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
- name: crowdin download
env:
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
CONTEXT: production
run: pnpm crowdin:download
- name: build
run: pnpm build
- name: create versions
uses: changesets/action@master
with:
version: pnpm ci:version
commit: 'chore: update versions'
title: 'chore: update versions'
publish: pnpm ci:publish
createGithubReleases: false
setupGitUser: false
env:
GITHUB_TOKEN: ${{ secrets.CHANGESET_RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
NPM_CONFIG_REGISTRY: https://registry.npmjs.org

View File

@@ -1,150 +0,0 @@
name: CI windows
on:
workflow_dispatch:
schedule:
- cron: '5 0 * * SUN'
permissions:
contents: read
jobs:
prepare:
runs-on: ubuntu-latest
name: setup verdaccio
services:
verdaccio:
image: verdaccio/verdaccio:nightly-master
ports:
- 4873:4873
env:
NODE_ENV: production
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
pnpm-
lint:
runs-on: windows-latest
name: Lint
needs: prepare
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --offline --reporter=silence --ignore-scripts
- name: Lint
run: pnpm lint
format:
runs-on: windows-latest
name: Format
needs: prepare
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --offline --reporter=silence --ignore-scripts
- name: Lint
run: pnpm format:check
build:
needs: [format, lint]
strategy:
fail-fast: true
matrix:
os: [windows-latest]
node_version: [18]
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version: ${{ matrix.node_version }}
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --offline --reporter=silence --ignore-scripts --registry http://localhost:4873
- name: build
run: pnpm build
- name: Test
run: pnpm test
ci-e2e-ui:
needs: [format, lint]
runs-on: windows-latest
name: UI Test E2E
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --offline --reporter=silence --registry http://localhost:4873
- name: build
run: pnpm build
- name: Test UI
run: pnpm test:e2e:ui
# env:
# DEBUG: verdaccio:e2e*

View File

@@ -1,166 +1,33 @@
name: CI
on:
push:
pull_request:
paths:
- .changeset/**
- .github/workflows/ci.yml
- 'packages/**'
- 'test/**'
- 'docker-examples/**'
- 'jest/**'
- 'package.json'
- 'pnpm-workspace.yaml'
permissions:
contents: read
on: [push, pull_request]
jobs:
prepare:
runs-on: ubuntu-latest
name: setup verdaccio
services:
verdaccio:
image: verdaccio/verdaccio:5
ports:
- 4873:4873
env:
NODE_ENV: production
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack install
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
pnpm-
lint:
runs-on: ubuntu-latest
name: Lint
needs: prepare
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack install
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --ignore-scripts
- name: Lint
run: pnpm lint
format:
runs-on: ubuntu-latest
name: Format
needs: prepare
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack install
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --ignore-scripts
- name: Lint
run: pnpm format:check
test:
needs: [format, lint]
ci:
name: Node ${{ matrix.node_version }}
strategy:
fail-fast: true
fail-fast: false
matrix:
os: [ubuntu-latest]
node_version: [18, 20]
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version: ${{ matrix.node_version }}
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@8.9.0
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --ignore-scripts --registry http://localhost:4873
- name: build
run: pnpm build
- name: Test
run: pnpm test
sync-translations:
needs: [test]
node_version: [14, 16, 18, 19]
runs-on: ubuntu-latest
name: synchronize translations
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack install
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
## we need scripts, pupetter downloads aditional content
run: pnpm install --registry http://localhost:4873
- name: build
run: pnpm build
- name: generate website translations
run: pnpm --filter ...@verdaccio/website write-translations
- name: sync
env:
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
CONTEXT: production
run: pnpm crowdin:sync
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: ${{ matrix.node_version }}
- name: Install
run: yarn install --immutable
- name: Format
run: yarn format:check
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Types
run: yarn code:types
- name: Test
run: yarn test

View File

@@ -1,59 +0,0 @@
name: 'Code scanning - action'
on:
pull_request:
paths:
- .github/workflows/codeql-analysis.yml
- 'packages/**'
schedule:
- cron: '0 2 * * 4'
permissions:
contents: read
jobs:
CodeQL-Build:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2

View File

@@ -1,38 +0,0 @@
name: E2E Docker Proxy Apache Test
on:
workflow_dispatch:
push:
branches:
- 'master'
schedule:
# run every sunday
- cron: '0 0 * * 0'
jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Start containers
run: docker-compose -f "./e2e/docker/apache-verdaccio/docker-compose.yaml" up -d --build
- name: Install node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: 18
- name: verdaccio cli
run: npm install -g verdaccio --registry http://localhost
- name: gastby cli
run: npm install -g gatsby-cli --registry http://localhost
- name: netlify cli
run: npm install -g netlify-cli --registry http://localhost
- name: angular cli
run: npm install -g @angular/cli --registry http://localhost
- name: Stop containers
if: always()
run: docker-compose -f "./e2e/docker/apache-verdaccio/docker-compose.yaml" down

View File

@@ -1,41 +0,0 @@
name: E2E Docker Proxy Nginx Test
on:
workflow_dispatch:
push:
branches:
- 'master'
jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Start containers
run: docker-compose -f "./e2e/docker/proxy-nginx/docker-compose.yaml" up -d --build
- name: Install node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: 18
- name: npm setup
run: |
npm config set fetch-retries="5"
npm config set fetch-retry-factor="50"
npm config set fetch-retry-mintimeout="20000"
npm config set fetch-retry-maxtimeout="80000"
- name: verdaccio cli
run: npm install -g verdaccio --registry http://localhost
- name: gastby cli
run: npm install -g gatsby-cli --registry http://localhost
- name: netlify cli
run: npm install -g netlify-cli --registry http://localhost
- name: angular cli
run: npm install -g @angular/cli --registry http://localhost
- name: Stop containers
if: always()
run: docker-compose -f "./e2e/docker/proxy-nginx/docker-compose.yaml" down

View File

@@ -0,0 +1,24 @@
name: Docker & Publish Pre-check
on: [push, pull_request]
jobs:
testDocker:
name: Test Docker Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Build
run: docker build .
env:
VERDACCIO_BUILD_REGISTRY: https://registry.npmjs.org
testVerdaccio:
name: Test Verdaccio Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Publish
uses: verdaccio/github-actions/publish@f2e0370cfa5d74d24c325017b701bfddc9cc2e5d # tag=v0.4.0
with:
args: -d

View File

@@ -4,27 +4,27 @@ on:
push:
paths:
- .github/workflows/docker-publish.yml
- .github/workflows/docker-publish.yml
- 'packages/**'
- 'src/**'
- 'conf/**'
- 'types/**'
- 'docker-bin/**'
- 'bin/**'
- 'package.json'
- 'pnpm-*.yaml'
- 'Dockerfile'
- '.dockerignore'
- 'yarn.lock'
- '.yarn/**'
- '.yarnrc.yaml'
- '.pnp.js'
branches:
- 'master'
- '**'
tags:
- 'v*'
permissions:
contents: read # to fetch code (actions/checkout)
- 'v*'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # tag=v1
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- uses: docker/setup-qemu-action@27d0a4f181a40b142cce983c5393082c365d1480 # tag=v1
- uses: docker/setup-buildx-action@v1
with:
driver-opts: network=host
@@ -38,14 +38,14 @@ jobs:
uses: crazy-max/ghaction-docker-meta@v1
with:
images: ${{ github.repository }}
tag-custom: nightly-master
tag-custom-only: ${{ github.ref == 'refs/heads/master' }}
tag-custom: 5.x-next
tag-custom-only: ${{ github.ref == 'refs/heads/5.x' }}
tag-semver: |
{{version}}
{{major}}
{{major}}.{{minor}}
- name: Build & Push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile

View File

@@ -0,0 +1,155 @@
on:
schedule:
- cron: '0 3 * * 5'
pull_request:
branches:
- '**'
name: 'E2E Angular CLI with verdaccio'
jobs:
npm:
name: 'npm6:angular example'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: 'Use Node.js 16.x'
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 16.x
- name: 'install latest npm'
run: npm i -g npm@latest-6
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
echo "registry=http://localhost:4873" > ~/.npmrc
npm config set loglevel="http"
npm config set fetch-retries="5"
npm config set fetch-retry-factor="50"
npm config set fetch-retry-mintimeout="20000"
npm config set fetch-retry-maxtimeout="80000"
npm install -g @angular/cli
ng new verdaccio-angular --interactive=false
cd verdaccio-angular
npm install @angular-devkit/core@next @babel/preset-env @babel/core -D
npm run ng build --aot
npm7:
name: 'npm7:angular example'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: 'Use Node.js 16.x'
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 16.x
- name: 'install latest npm'
run: npm i -g npm@next-7
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
echo "registry=http://localhost:4873" > ~/.npmrc
npm config set loglevel="silent"
npm config set fetch-retries="5"
npm config set fetch-retry-factor="50"
npm config set fetch-retry-mintimeout="20000"
npm config set fetch-retry-maxtimeout="80000"
npm install -g @angular/cli
ng new verdaccio-angular --interactive=false
cd verdaccio-angular
npm install @angular-devkit/core@next @babel/preset-env @babel/core -D
npm run ng build --aot
npm8:
name: 'npm8:angular example'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: 'Use Node.js 16.x'
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 16.x
- name: 'install latest npm'
run: npm i -g npm@next-8
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
echo "registry=http://localhost:4873" > ~/.npmrc
npm config set loglevel="silent"
npm config set fetch-retries="5"
npm config set fetch-retry-factor="50"
npm config set fetch-retry-mintimeout="20000"
npm config set fetch-retry-maxtimeout="80000"
npm install -g @angular/cli
ng new verdaccio-angular --interactive=false
cd verdaccio-angular
npm install @angular-devkit/core@next @babel/preset-env @babel/core -D
npm run ng build --aot
npm9:
name: 'npm9:angular example'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: 'Use Node.js 18.x'
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 18.x
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
echo "registry=http://localhost:4873" > ~/.npmrc
npm config set loglevel="silent"
npm config set fetch-retries="5"
npm config set fetch-retry-factor="50"
npm config set fetch-retry-mintimeout="20000"
npm config set fetch-retry-maxtimeout="80000"
npm install -g @angular/cli
ng new verdaccio-angular --interactive=false
cd verdaccio-angular
npm install @angular-devkit/core@next @babel/preset-env @babel/core -D
npm run ng build --aot

View File

@@ -1,132 +0,0 @@
name: E2E CLI
on: [pull_request]
permissions:
contents: read
jobs:
prepare:
runs-on: ubuntu-latest
name: setup e2e verdaccio
services:
verdaccio:
image: verdaccio/verdaccio:nightly-master
ports:
- 4873:4873
env:
NODE_ENV: production
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@8.9.0
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --reporter=silence --ignore-scripts --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
restore-keys: |
pnpm-
build:
needs: [prepare]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node 16
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@8.9.0
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --reporter=silence --registry http://localhost:4873
- name: build
run: pnpm build
- name: Cache packages
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
id: cache-packages
with:
path: ./packages/
key: pkg-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
restore-keys: |
packages-
# - name: Cache test
# uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # tag=v3
# id: cache-test
# with:
# path: ./e2e/
# key: test-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
# restore-keys: |
# test-
e2e-cli:
needs: [prepare, build]
strategy:
fail-fast: false
matrix:
pkg:
[
npm6,
npm7,
npm8,
npm9,
npm10,
pnpm6,
pnpm7,
pnpm8,
yarn1,
yarn2,
yarn3,
yarn4,
]
node: [16, 18, 19]
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version: ${{ matrix.node }}
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@8.9.0
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --offline --reporter=silence --ignore-scripts --registry http://localhost:4873
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ./packages/
key: pkg-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
# - uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # tag=v3
# with:
# path: ./e2e/
# key: test-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
- name: build e2e
run: pnpm --filter @verdaccio/test-cli-commons build
- name: Test CLI
run: NODE_ENV=production pnpm test --filter ...@verdaccio/e2e-cli-${{matrix.pkg}}

View File

@@ -0,0 +1,79 @@
on:
schedule:
- cron: '0 3 * * 5'
pull_request:
branches:
- '**'
name: 'E2E Gatsby.js CLI with verdaccio'
jobs:
npm6:
name: 'npm6:gatsby example'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: 'Use Node.js 18.x'
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 18.x
- name: 'install npm 6'
run: npm i -g npm@latest-6
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
echo "registry=http://localhost:4873
loglevel="warn"
fetch-retries=10
fetch-retry-factor=2
fetch-retry-mintimeout=10000
fetch-retry-maxtimeout=80000" > ~/.npmrc
npm config list
npm i -g gatsby@4.24.7
gatsby new my-gatsby
cd my-gatsby
npm run build
npm9:
name: 'npm9:gatsby example'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: 'Use Node.js 18.x'
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 18.x
- name: 'install npm 9'
run: npm i -g npm@9.4.2
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
echo "registry=http://localhost:4873
loglevel="warn"
fetch-retries=10
fetch-retry-factor=2
fetch-retry-mintimeout=10000
fetch-retry-maxtimeout=80000" > ~/.npmrc
npm config list
npm i -g gatsby@5.6.0
gatsby new my-gatsby
cd my-gatsby
npm run build

238
.github/workflows/e2e-jest-workflow.yml vendored Normal file
View File

@@ -0,0 +1,238 @@
on:
schedule:
- cron: '0 3 * * 5'
pull_request:
branches:
- '**'
name: 'E2E Jest with verdaccio'
jobs:
yarn:
name: 'yarn:jest example'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: 'Use Node.js 16.x'
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 16.x
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
yarn init --yes
yarn add jest@29.5.0 --registry http://localhost:4873
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
yarn jest pass.test.js
yarn add left-pad --registry http://localhost:4873 --verbose
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
yarn jest module.test.js
yarn2:
name: 'yarn2:jest example'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: 'Use Node.js 16.x'
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 16.x
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
yarn init --yes
yarn set version berry
yarn config set npmRegistryServer "http://localhost:4873"
yarn config set unsafeHttpWhitelist --json '["localhost"]'
yarn add jest@29.5.0
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
yarn jest pass.test.js
yarn add left-pad
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
yarn jest module.test.js
npm:
name: 'npm:jest example'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: 'Use Node.js 16.x'
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 16.x
- name: 'install latest npm'
run: npm i -g npm@latest-6
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
npm init --force
npm install jest@29.5.0 --registry http://localhost:4873
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
yarn jest pass.test.js
yarn add left-pad --registry http://localhost:4873 --verbose
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
yarn jest module.test.js
npm8:
name: 'npm8:jest example'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: 'Use Node.js 16.x'
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 16.x
- name: 'install latest npm'
run: npm i -g npm@next-8
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
npm init --force
npm install jest@29.5.0 --registry http://localhost:4873
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
yarn jest pass.test.js
yarn add left-pad --registry http://localhost:4873 --verbose
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
yarn jest module.test.js
npm9:
name: 'npm9:jest example'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: 'Use Node.js 18.x'
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 18.x
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
npm init --force
npm install jest@29.4.2 --registry http://localhost:4873
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
yarn jest pass.test.js
yarn add left-pad --registry http://localhost:4873 --verbose
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
yarn jest module.test.js
pnpm6:
name: 'pnpm:latest-6:jest example'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: 'Use Node.js 16.x'
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 16.x
- name: 'install latest pnpm'
run: npm i -g pnpm@latest-6
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup yarn node ./scripts/run-verdaccio.js &
- name: 'Ping to verdaccio'
run: |
pnpm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
pnpm init --force
pnpm install jest@29.5.0 --registry http://localhost:4873
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
yarn jest pass.test.js
yarn add left-pad --registry http://localhost:4873 --verbose
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
yarn jest module.test.js
pnpm7:
name: 'pnpm:7:jest example'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: 'Use Node.js 16.x'
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 16.x
- name: 'install latest pnpm'
run: npm i -g pnpm@latest-7
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
yarn node ./scripts/run-verdaccio.js &
- name: 'Ping to verdaccio'
run: |
pnpm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
pnpm init
pnpm install jest@29.5.0 --registry http://localhost:4873
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
yarn jest pass.test.js
yarn add left-pad --registry http://localhost:4873 --verbose
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
yarn jest module.test.js

View File

@@ -1,36 +0,0 @@
name: E2E UI
on: [pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
name: UI Test E2E
services:
verdaccio:
image: verdaccio/verdaccio:5
ports:
- 4873:4873
env:
NODE_ENV: production
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack install
- name: Install
run: pnpm install --reporter=silence --registry http://localhost:4873
- name: build
run: pnpm build
- name: Test UI
run: pnpm test:e2e:ui
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
with:
name: videos
path: /home/runner/work/verdaccio/verdaccio/e2e/ui/cypress/videos

13
.github/workflows/registry.yml vendored Normal file
View File

@@ -0,0 +1,13 @@
name: Test local registry for js vulnerabilities
on:
schedule:
- cron: '0 */4 1 * *'
jobs:
security:
runs-on: ubuntu-latest
steps:
- name: Test for public javascript library vulnerabilities
uses: lirantal/is-website-vulnerable@02d7916b29a1fd9d6a9bea0d83960d4288afa1a6 # tag=1.15.10
with:
scan-url: "https://registry.verdaccio.org"

28
.github/workflows/release-snapshot.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Release Canary 5.x
on:
workflow_dispatch:
push:
branches:
- 5.x
jobs:
release:
name: Release Snapshot
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Use Node (latest)
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version-file: '.nvmrc'
- name: Install
run: yarn install
- name: Build
run: yarn build
- name: Bump up package
run: npm version prerelease --no-git-tag-version --preid $(date +%s)
- name: Publish
run: sh scripts/publish-prerelease.sh
env:
REGISTRY_AUTH_TOKEN: ${{ secrets.VERDACCIO_REGISTRY_TOKEN_CANARY }}
REGISTRY_URL: registry.verdaccio.org

31
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Release 5.x
on:
push:
tags:
- '*'
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Use Node (latest)
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version-file: '.nvmrc'
- name: Install
run: yarn install
- name: Build
run: yarn build
- name: Types
run: yarn code:types
- name: Publish
run: sh scripts/publish.sh
env:
REGISTRY_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
REGISTRY_URL: registry.npmjs.org
- name: Create release notes
run: sh scripts/github-release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

26
.github/workflows/smok-test-docker.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Docker Smoke Test 5.x
on:
workflow_dispatch:
push:
branches:
- 5.x
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: 14
- name: Docker test
run: |
docker run -d -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio:5
- name: verdaccio cli
run: npm install -g verdaccio --registry http://localhost:4873
- name: gastby cli
run: npm install -g gatsby-cli --registry http://localhost:4873
- name: netlify cli
run: npm install -g netlify-cli --registry http://localhost:4873
- name: angular cli
run: npm install -g @angular/cli --registry http://localhost:4873

View File

@@ -0,0 +1,41 @@
name: Module Smoke Test Node.js 12
on:
workflow_dispatch:
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Use Node
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version: 12
- name: Docker test
run: |
docker run -d -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio:5
- name: login
run: npx npm-cli-login -u test -p 1234 -e test@domain.test -r http://localhost:4873
- name: Build
run: yarn build
- name: Types
run: yarn code:types
- name: Bump up package
run: npm version prerelease --no-git-tag-version --preid $(date +%s%N)
- name: publish verdaccio
run: npm publish --registry http://localhost:4873
- name: install verdaccio
run: npm i -g verdaccio --loglevel info --registry http://localhost:4873
- name: verdaccio version
run: verdaccio --version
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
npm init --force
npm install jest@27.5.1 --registry http://localhost:4873
npm install verdaccio --registry http://localhost:4873
echo "test('require module should works', () => { const {runServer} = require('verdaccio') });" | tee module.spec.js
cat module.spec.js
yarn jest

41
.github/workflows/smok-test-module.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: Module Smoke Test 5.x
on:
workflow_dispatch:
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Use Node (latest)
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
with:
node-version-file: '.nvmrc'
- name: Docker test
run: |
docker run -d -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio:5
- name: login
run: npx npm-cli-login -u test -p 1234 -e test@domain.test -r http://localhost:4873
- name: Build
run: yarn build
- name: Types
run: yarn code:types
- name: Bump up package
run: npm version prerelease --no-git-tag-version --preid $(date +%s%N)
- name: publish verdaccio
run: npm publish --registry http://localhost:4873
- name: install verdaccio
run: npm i -g verdaccio --loglevel info --registry http://localhost:4873
- name: verdaccio version
run: verdaccio --version
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
npm init --force
npm install jest --registry http://localhost:4873
npm install verdaccio --registry http://localhost:4873
echo "test('require module should works', () => { const {runServer} = require('verdaccio') });" | tee module.spec.js
cat module.spec.js
yarn jest

View File

@@ -1,54 +0,0 @@
---
name: static data
on:
workflow_dispatch:
schedule:
# twice peer week
- cron: '0 0 * * 1,4'
# for now, scheduled, we can enable on push master but not make much sense now
# push:
# branches:
# - master
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
prepare:
name: Run script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version: 18.x
- name: install pnpm
run: sudo npm i pnpm@latest-8 -g
- name: install dependencies
run: pnpm install
- name: Build Translations percentage
run: pnpm --filter @verdaccio/crowdin-translations build
- name: update contributors
run: pnpm run contributors
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: update addson data
run: pnpm script:addson
- name: update translations
run: pnpm run translations
env:
TOKEN: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
- name: format
run: pnpm format
- name: Commit & Push changes
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 # tag=v1.4
with:
github_token: ${{ secrets.TOKEN_VERDACCIOBOT_GITHUB }}
message: "chore: updated static data"
branch: master
author_email: verdaccio.npm@gmail.com
author_name: verdacciobot

View File

@@ -1,78 +0,0 @@
name: UI Components
on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/ui-components.yml
- 'packages/ui-components/**'
- 'package.json'
- 'pnpm-workspace.yaml'
- 'pnpm-lock.yaml'
permissions:
contents: read # to fetch code (actions/checkout)
env:
DEBUG: verdaccio*
jobs:
deploy:
permissions:
contents: read # to fetch code (actions/checkout)
deployments: write
pull-requests: write # to comment on pull-requests
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Cache pnpm modules
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@8.9.0
- name: Install
run: pnpm install
- name: Build storybook
run: pnpm ui:storybook:build
- name: Copy public content
# the msw.js worker is need it at the storybook-static folder in production
run: cp -R packages/ui-components/public/* packages/ui-components/storybook-static
- name: 🔥 Deploy Production UI Netlify
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
uses: verdaccio/action-netlify-deploy@1c086d59169edeec9254672c7de17d2ceac3928f # v2.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_UI_SITE_ID }}
build-dir: './packages/ui-components/storybook-static'
- name: 🤖 Deploy Preview UI Components Netlify
if: github.repository == 'verdaccio/verdaccio'
uses: semoal/action-netlify-deploy@1a53f098745bf78555d11b436f5ee3af87e6b566
id: netlify_preview_ui
with:
draft: true
comment-on-pull-request: true
github-deployment-is-production: false
github-deployment-is-transient: true
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_UI_SITE_ID }}
build-dir: './packages/ui-components/storybook-static'

View File

@@ -1,144 +0,0 @@
name: Verdaccio Website CI
on:
workflow_dispatch:
pull_request:
paths:
- 'website/**'
- './.github/workflows/website.yml'
schedule:
- cron: '0 0 * * *'
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
permissions:
contents: read # to fetch code (actions/checkout)
deployments: write
pull-requests: write # to comment on pull-requests
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node 16
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version: 16
- name: Cache pnpm modules
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # tag=v2.4.0
with:
version: latest-8
run_install: |
- recursive: true
args: [--frozen-lockfile]
- name: Build
run: pnpm build
- name: Build Translations percentage
run: pnpm --filter @verdaccio/crowdin-translations build
- name: Cache Docusaurus Build
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: website/node_modules/.cache/webpack
key: cache/webpack-${{github.ref}}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: cache/webpack-${{github.ref}}
# Will deploy to production on:
# 1st: When a push occurs on master branch
# 2nd: When we force the worflow dispatch through the UI
- name: Build Production
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
env:
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
CONTEXT: production
run: pnpm --filter @verdaccio/website netlify:build:production
- name: 🔥 Deploy Production Netlify
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
uses: semoal/action-netlify-deploy@1a53f098745bf78555d11b436f5ee3af87e6b566
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
build-dir: './website/build'
# Will deploy to Preview URL, only when a pull request is open with changes on the website
- name: Build Deployment Preview
env:
CONTEXT: deploy-preview
run: pnpm --filter ...@verdaccio/website netlify:build:deployPreview
- name: 🤖 Deploy Preview Netlify
if: github.repository == 'verdaccio/verdaccio'
uses: semoal/action-netlify-deploy@1a53f098745bf78555d11b436f5ee3af87e6b566
id: netlify_preview
with:
draft: true
comment-on-pull-request: true
github-deployment-is-production: false
github-deployment-is-transient: true
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
build-dir: './website/build'
- name: Audit preview URL with Lighthouse
if: github.repository == 'verdaccio/verdaccio'
id: lighthouse_audit
uses: treosh/lighthouse-ci-action@03becbfc543944dd6e7534f7ff768abb8a296826 # tag=10.1.0
with:
urls: |
${{ steps.netlify_preview.outputs.preview-url }}
uploadArtifacts: true
temporaryPublicStorage: true
- name: Format lighthouse score
id: format_lighthouse_score
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # tag=v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const result = ${{ steps.lighthouse_audit.outputs.manifest }}[0].summary
const links = ${{ steps.lighthouse_audit.outputs.links }}
const formatResult = (res) => Math.round((res * 100))
Object.keys(result).forEach(key => result[key] = formatResult(result[key]))
const score = res => res >= 90 ? '🟢' : res >= 50 ? '🟠' : '🔴'
const comment = [
`⚡️ [Lighthouse report](${Object.values(links)[0]}) for the changes in this PR:`,
'| Category | Score |',
'| --- | --- |',
`| ${score(result.performance)} Performance | ${result.performance} |`,
`| ${score(result.accessibility)} Accessibility | ${result.accessibility} |`,
`| ${score(result['best-practices'])} Best practices | ${result['best-practices']} |`,
`| ${score(result.seo)} SEO | ${result.seo} |`,
' ',
`*Lighthouse ran on [${Object.keys(links)[0]}](${Object.keys(links)[0]})*`
].join('\n')
core.setOutput("comment", comment);
- name: Add comment to PR
if: github.repository == 'verdaccio/verdaccio'
id: comment_to_pr
uses: marocchino/sticky-pull-request-comment@efaaab3fd41a9c3de579aba759d2552635e590fd # v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.issue.number }}
delete: true
header: lighthouse
message: |
${{ steps.format_lighthouse_score.outputs.comment }}

58
.gitignore vendored
View File

@@ -1,55 +1,39 @@
*.log*
verdaccio-*.tgz
.DS_Store
build/
dist/
.eslintcache
node_modules
### database
### Test
test/unit/partials/store/test-*-storage/*
test/unit/partials/store/*-storage/*
test/unit/partials/store/storage_default_storage/*
.verdaccio-db.json
.sinopia-db.json
### test
###
!bin/verdaccio
test-storage*
access-storage*
.verdaccio_test_env
node_modules
package-lock.json
npm_test-fails-add-tarball*
yarn-error.log
# docker examples
docker-examples/v5/reverse_proxy/nginx/relative_path/storage/*
docker-examples/v5/**/storage/*
# jest
# coverage
reports/
coverage/
## IDE
# IDE
.idea/
# Compiled script
packages/partials
tsconfig.tsbuildinfo
static/*
## bundle files
packages/standalone/dist/
# This is the Yarn build state; it's local to each clone
/.yarn/build-state.yml
## ui
packages/plugins/ui-theme/static
/packages/plugins/ui-theme/src/i18n/download_translations/
!/packages/plugins/ui-theme/src/i18n/crowdin/ui.json
# CI Pnpm cache
.pnpm-store/
#docs
website/docs/api/**/*.md
website/docs/api/**/*.yml
!website/docs/api/index.md
packages/**/docs
# cypress
e2e/ui/cypress/videos/**/*
e2e/ui/cypress/screenshots/**/*
# storybook
packages/ui-components/storybook-static
# This is the Yarn install state cache, it can be rebuilt anytime
/.yarn/install-state.gz
.history

View File

@@ -1,5 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#./node_modules/.bin/lint-staged
npm run husky:pre-commit

View File

@@ -1,10 +0,0 @@
module.exports = {
onPreBuild: async ({ utils: { build, run } }) => {
try {
await run.command("npm install -g pnpm")
await run.command("pnpm install --ignore-scripts --frozen-lockfile")
} catch (error) {
return build.failBuild(error)
}
}
}

View File

@@ -1,2 +0,0 @@
name: netlify-plugin-pnpm
inputs: []

View File

@@ -1,3 +1,4 @@
## npm
npm-debug.log
yarn-error.log
@@ -22,6 +23,7 @@ docs/
wiki/
## flow
flow-typed/
types/
# jest
@@ -38,3 +40,9 @@ jest.config.js
contrib/
storage_default_storage/
docker-bin/
yarn-plugins/
tsconfig.json
CHANGELOG.md
SECURITY.md
CONTRIBUTING.md
CONTRIBUTORS.md

1
.npmrc
View File

@@ -1,3 +1,2 @@
always-auth = true
loglevel=info
fetch-retries="10"

2
.nvmrc
View File

@@ -1 +1 @@
20
16

26649
.pnp.cjs generated Executable file

File diff suppressed because one or more lines are too long

2047
.pnp.loader.mjs generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -6,34 +6,29 @@
**/pnpm-lock.yaml
**/verdaccio-corrupted.db.json
**/wrong.package.json
crowdin.yaml
/docs/website
/website/translated_docs/
/website/.cache/
/website/crowdin/
/website/public/
/website/src/dictionaries/
CHANGELOG.md
README.md
CONTRIBUTORS.md
node_modules/
**/coverage/**
**/static/*.js
**/dist/*.js
website/.docusaurus/**/*
website/i18n/**/*
**/build/*.js
packages/core/local-storage/_storage/**
packages/partials/storage_default_storage/
packages/standalone/dist/bundle.js
packages/verdaccio/dist/bundle.js
docker-examples/v5/reverse_proxy/nginx/relative_path/storage/*
build/
.vscode/
test/unit/partials/*
build/*
.github/
.netlify/
packages/**/docs/**
packages/mock/mock-store/**
api/**
packages/core/local-storage/tests/__fixtures__/test-storage/
packages/plugins/ui-theme/static/
.verdaccio-db.json
test/cli/e2e-yarn4/bin/yarn-4.0.0-rc.14.cjs
yarn.js
website/docs/api/*
packages/ui-components/storybook-static/*
.vscode/
wiki/
.yarnrc.yml
yarn-error.log
.yarn/
test/functional/store/*
storage_default_storage/*
docker-examples/
.prettierignore
.npmignore
.gitignore
*.ico
.pnp.js

View File

@@ -1,22 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>verdaccio-dev</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
<filteredResources>
<filter>
<id>1630305579538</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-true-false-node_modules</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

1
.sonarcloud.properties Normal file
View File

@@ -0,0 +1 @@

View File

@@ -26,7 +26,7 @@
"no-descending-specificity": [true, { "severity": "warning" }],
"no-duplicate-at-import-rules": true,
"no-duplicate-selectors": true,
"no-empty-source": null,
"no-empty-source": true,
"no-extra-semicolons": true,
"no-invalid-double-slash-comments": true,
"property-no-unknown": true,
@@ -38,3 +38,4 @@
}
}

13
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,13 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"EditorConfig.EditorConfig",
"dbaeumer.vscode-eslint",
"arcanis.vscode-zipfs",
"esbenp.prettier-vscode"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}

25
.vscode/launch.json vendored
View File

@@ -1,15 +1,14 @@
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"port": 9229,
"request": "attach",
"skipFiles": ["<node_internals>/**"],
"type": "pwa-node"
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Attach by Process ID",
"processId": "${command:PickProcess}",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
}
]
}

25
.vscode/settings.json vendored
View File

@@ -1,13 +1,24 @@
// Place your settings in this file to overwrite default and user settings.
{
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.tsserver.watchOptions": {
"watchFile": "useFsEventsOnParentDirectory",
"watchDirectory": "useFsEvents"
},
"eslint.nodePath": ".yarn/sdks",
"eslint.validate": [
"javascript",
"typescript"
],
"files.exclude": {
"**/.nyc_output": true,
"**/build": false,
"**/coverage": true,
".idea": true,
"storage_default_storage": true,
".yarn": true
"**/.idea": false,
"**/coverage": true
},
"editor.formatOnSave": true,
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.enablePromptUseWorkspaceTsdk": true,
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More