Skip to content

Commit

Permalink
chore: add the *.ic0.app worker to the repo (dfinity#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl authored Mar 25, 2021
1 parent b5e9e11 commit 1f44bca
Show file tree
Hide file tree
Showing 13 changed files with 4,172 additions and 3,369 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ To publish to NPM, create a branch and run the following commands;
This will change your code locally, so create a `chore: release VERSION_NUMBER` commit and
push. Once the PR is created get someone to review it.

### Publishing Cloudflare Workers
Until Cloudflare is no longer needed, we need to publish both workers from their directories;

* Start from a fresh clone (or `git clean -dfx .`)
* `lerna bootstrap`
* `lerna run build`
* `cd workers/auth.ic0.app` for the Authentication
* `npm ci` to make sure the proper packages are installed.
* `npx wrangler login` to login. YOU NEED AN API TOKEN FOR THIS.
* `npm run build`
* `npx wrangler publish`

Repeat steps for `workers/ic0.app`.

### GitHub Actions

GitHub Actions for this repo are configured in [./.github/workflows](./.github/workflows).
Expand Down
2 changes: 1 addition & 1 deletion apps/bootstrap/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1f44bca

Please sign in to comment.