-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/yarn3
- Loading branch information
Showing
13 changed files
with
136 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
day: "monday" | ||
interval: "weekly" | ||
# To be added when a package manager decision has been taken | ||
# - package-ecosystem: "npm" / "pnpm" # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
name: Build ODIS signer image | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'dockerfiles/phone-number-privacy/Dockerfile-signer' | ||
- 'packages/phone-number-privacy/signer/**' | ||
branches: | ||
- main | ||
pull_request: | ||
paths: | ||
- 'dockerfiles/phone-number-privacy/Dockerfile-signer' | ||
- 'packages/phone-number-privacy/signer/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
odis-signer-build-dev: | ||
uses: celo-org/reusable-workflows/.github/workflows/[email protected] | ||
name: Build us-west1-docker.pkg.dev/devopsre/dev-images/monorepo:${{ github.sha }} | ||
if: | | ||
github.ref != 'refs/heads/main' | ||
with: | ||
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-social-connect/providers/github-by-repos | ||
service-account: '[email protected]' | ||
artifact-registry: us-west1-docker.pkg.dev/devopsre/dev-images/odis-signer | ||
tag: ${{ github.sha }} | ||
context: . | ||
file: dockerfiles/phone-number-privacy/Dockerfile-signer | ||
trivy: true | ||
|
||
odis-signer-build: | ||
uses: celo-org/reusable-workflows/.github/workflows/[email protected] | ||
name: Build us-west1-docker.pkg.dev/devopsre/celo-monorepo/monorepo:${{ github.sha }} | ||
if: | | ||
github.ref == 'refs/heads/master' | ||
with: | ||
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-social-connect-main/providers/github-by-repos | ||
service-account: '[email protected]' | ||
artifact-registry: us-west1-docker.pkg.dev/devopsre/social-connect/odis-signer | ||
tag: ${{ github.sha }} | ||
context: . | ||
file: dockerfiles/phone-number-privacy/Dockerfile-signer | ||
trivy: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Release Process | ||
|
||
This repo uses changesets to determine what packages need a version bump. | ||
|
||
Each PR MUST be accompanied by a changeset unless it has zero affect on package consumers (ie changing github action workflows). | ||
|
||
To create a changeset run `changeset add` (or `yarn cs`) | ||
|
||
This will bring up an interactive console which asks which packages are affect and if they require minor or major update. | ||
|
||
when time to release new versions of npm package run `changeset version` this will look thru the changeset files that have been generated since last release to bump the versions for package automatically to major if any changesets specify major change minor if only minor and patch if a the package had no changesets of its own but depends on one which will be updated. | ||
|
||
finally `changeset publish` will go thru and publish to npm the packages that need publishing. | ||
|
||
after go ahead and run `git push --follow-tags` to push git tags up to github. | ||
|
||
## for pre releasing | ||
|
||
changesets has 2 strategies for pre release versions. | ||
|
||
The first is to enter `pre` mode on changesets. [docs here](https://github.com/changesets/changesets/blob/main/docs/prereleases.md) | ||
|
||
``` | ||
yarn changeset pre enter beta | ||
yarn changeset version | ||
git add . | ||
git commit -m "Enter prerelease mode and version packages" | ||
yarn changeset publish | ||
git push --follow-tags | ||
``` | ||
|
||
The other is to append --snapshot. which is great for daily releases. | ||
|
||
``` | ||
yarn changeset version --snapshot canary | ||
yarn changeset publish --no-git-tag --snapshot | ||
``` | ||
<https://github.com/changesets/changesets/blob/main/docs/snapshot-releases.md> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.