Skip to content

Commit

Permalink
test(verdacio-integration): use yarn berry command to update lingui d…
Browse files Browse the repository at this point in the history
…eps (#1658)
  • Loading branch information
timofei-iatsenko authored May 29, 2023
1 parent e335458 commit e18dac7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/verdaccio/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ auth:
store:
memory:
limit: 1000
## we don't need any remote request
uplinks:
npmjs:
url: https://registry.npmjs.org/
packages:
'@*/*':
access: $all
Expand All @@ -20,4 +21,4 @@ middlewares:
audit:
enabled: true
logs:
- {type: stdout, format: pretty, level: trace}
- {type: stdout, format: pretty, level: trace}
4 changes: 1 addition & 3 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ jobs:
run: |
git switch -c "pull-request"
npm i -g {verdaccio,verdaccio-auth-memory,verdaccio-memory}
mkdir -p $HOME/.config/verdaccio
cp --verbose .github/verdaccio/config.yaml $HOME/.config/verdaccio/config.yaml
nohup verdaccio --config $HOME/.config/verdaccio/config.yaml &>mktemp &
nohup verdaccio --config .github/verdaccio/config.yaml &>mktemp &
yarn verdaccio:release
yarn verdaccio:integration
4 changes: 1 addition & 3 deletions scripts/verdaccio-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ async function main() {
await exec("yarn", OPTS)
spinner.start("Linking create-react-app")
await exec(
"npm i -g update-by-scope --registry https://registry.npmjs.org",
'YARN_NPM_REGISTRY_SERVER=http://0.0.0.0:4873/ yarn up "@lingui/*" ',
OPTS
)
await exec("npm config set registry http://0.0.0.0:4873/", OPTS)
await exec("update-by-scope @lingui", OPTS)
spinner.succeed("Updated @lingui packages")

spinner.start("Running tests")
Expand Down

1 comment on commit e18dac7

@vercel
Copy link

@vercel vercel bot commented on e18dac7 May 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.