Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update readme on how to populate local dev environment #820

Merged
merged 3 commits into from
Nov 7, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,19 @@ registry with data is to publish
[deno_std](https://github.com/denoland/deno_std) to the registry. This can be
done via the following steps:

1. Clone https://github.com/denoland/deno_std in the same parent folder as the
`jsr` project
2. Make sure to [make yourself a staff user/admin](#making-yourself-a-staff-useradmin)
3. Run `JSR_URL=http://jsr.test deno publish` to publish all of the @std
1. Make sure to [make yourself a staff user/admin](#making-yourself-a-staff-useradmin).
2. Run `SELECT id, name FROM users;` in the `registry` database to get your user's UUID.
mbhrznr marked this conversation as resolved.
Show resolved Hide resolved
3. Assign the `std` scope to your user through the [admin panel](http://jsr.test/admin/scopes/assign)
by using the UUID from the previous step.
4. Clone https://github.com/denoland/deno_std in the same parent folder as the
`jsr` project.
5. Run `JSR_URL=http://jsr.test deno publish` to publish all of the @std
packages to your local dev environment.

### Making yourself a staff user/admin

1. Run `psql registry`
2. Run `SELECT name,github_id from users;`
2. Run `SELECT name, github_id FROM users;`
3. You should see a table with your name and GitHub ID. Copy your GitHub ID.
4. Run `UPDATE users SET is_staff = true WHERE github_id = xxxxxxx;`, replacing
`xxxxxxx` with your copied GitHub ID from the previous step.
Expand Down
Loading