-
Notifications
You must be signed in to change notification settings - Fork 183
Use changesets for releases #528
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
34e2f8e
Add changesets
ericglau 463e0a9
Remove ignore-changeset from docs
ericglau d687d64
Separate workflows for version and publish
ericglau 40a922a
Update step names
ericglau a2f0111
Rename to Publish Packages
ericglau 98d3ead
Update workflows
ericglau b5ce1eb
Merge remote-tracking branch 'upstream/master' into changesets
ericglau 1162d34
Use Node 20
ericglau a90ed7f
Update yarn.lock
ericglau 5866532
Merge branch 'node20' into changesets
ericglau 9f1dc69
Pin all action versions
ericglau 71e5a27
Merge remote-tracking branch 'upstream/master' into changesets
ericglau 5ae2a6c
Pin action version
ericglau 192e17f
Add EOL
ericglau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,7 @@ | ||
| --- | ||
| '@openzeppelin/wizard': patch | ||
| --- | ||
|
|
||
| Add `account` contract types for ERC-4337. ([#486](https://github.com/OpenZeppelin/contracts-wizard/pull/486)) | ||
| - **Potentially breaking changes**: | ||
| - Update pragma versions to 0.8.27. ([#486](https://github.com/OpenZeppelin/contracts-wizard/pull/486)) |
This file contains hidden or 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,19 @@ | ||
| { | ||
| "$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
| "changelog": [ | ||
| "@changesets/changelog-github", | ||
| { | ||
| "repo": "OpenZeppelin/contracts-wizard" | ||
| } | ||
| ], | ||
| "commit": false, | ||
| "fixed": [], | ||
| "linked": [], | ||
| "access": "public", | ||
| "baseBranch": "master", | ||
| "updateInternalDependencies": "patch", | ||
| "ignore": [ | ||
| "@openzeppelin/wizard-cairo-alpha", | ||
| "ui" | ||
| ] | ||
| } |
This file contains hidden or 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,5 @@ | ||
| --- | ||
| '@openzeppelin/wizard': patch | ||
| --- | ||
|
|
||
| Remove redundant overrides in Governor. ([#522](https://github.com/OpenZeppelin/contracts-wizard/pull/522)) |
This file contains hidden or 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,13 @@ | ||
| name: Setup | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 #v4.4.0 | ||
| with: | ||
| node-version: 20.x | ||
| cache: yarn | ||
|
|
||
| - name: Install dependencies | ||
| run: yarn --frozen-lockfile --prefer-offline | ||
| shell: bash |
This file contains hidden or 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,28 @@ | ||
| name: Changeset | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - labeled | ||
| - unlabeled | ||
|
|
||
| concurrency: | ||
| group: changeset-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| check: | ||
| runs-on: ubuntu-latest | ||
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'ignore-changeset') }} | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 | ||
| with: | ||
| fetch-depth: 0 # Include history so Changesets finds merge-base | ||
| - name: Set up environment | ||
| uses: ./.github/actions/setup | ||
| - name: Check changeset | ||
| run: npx changeset status --since=origin/${{ github.base_ref }} |
This file contains hidden or 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 hidden or 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 hidden or 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,43 @@ | ||
| name: Publish Packages | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: version-or-publish-${{ github.ref }} | ||
|
|
||
| jobs: | ||
| publish: | ||
| name: Publish Packages | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| runs-on: ubuntu-latest | ||
| environment: publish | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 | ||
| with: | ||
| fetch-depth: 0 # To get all tags | ||
| ref: ${{ github.ref }} | ||
| - name: Set up environment | ||
| uses: ./.github/actions/setup | ||
| - name: Create Prepare Release PR or Publish | ||
| id: changesets | ||
| uses: changesets/action@06245a4e0a36c064a573d4150030f5ec548e4fcc #v1.4.10 | ||
| with: | ||
| title: Prepare Release | ||
| commit: Prepare Release | ||
| version: npm run version | ||
| publish: npm run publish | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Eventually for improvements we can pass in provenance uploads using |
||
| - name: Check changesets status | ||
| if: steps.changesets.outputs.hasChangesets == 'true' | ||
| run: | | ||
| echo "Changesets found. Merge Prepare Release PR before publishing." | ||
| exit 1 | ||
| - name: Check publish status | ||
| if: steps.changesets.outputs.published == 'false' | ||
| run: | | ||
| echo "Publish failed. Check the logs for more details." | ||
| exit 1 | ||
ericglau marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or 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 hidden or 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,31 @@ | ||
| name: Version Packages | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
|
|
||
| concurrency: version-or-publish-${{ github.ref }} | ||
|
|
||
| jobs: | ||
| version: | ||
| name: Prepare Release PR | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 | ||
| with: | ||
| fetch-depth: 0 # To get all tags | ||
| ref: ${{ github.ref }} | ||
| - name: Set up environment | ||
| uses: ./.github/actions/setup | ||
| - name: Create Prepare Release PR | ||
| uses: changesets/action@06245a4e0a36c064a573d4150030f5ec548e4fcc #v1.4.10 | ||
| with: | ||
| title: Prepare Release | ||
| commit: Prepare Release | ||
| version: npm run version | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: You can probably combine cairo-alpha-project and cairo-project into single composite action and use inputs to differentiate? Something to improve upon later