-
Notifications
You must be signed in to change notification settings - Fork 186
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
Changes from 13 commits
34e2f8e
463e0a9
d687d64
40a922a
a2f0111
98d3ead
b5ce1eb
1162d34
a90ed7f
5866532
9f1dc69
71e5a27
5ae2a6c
192e17f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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)) |
| 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" | ||
| ] | ||
| } |
| 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)) |
| 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 |
| 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 }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,10 +15,10 @@ jobs: | |
|
|
||
|
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. 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 |
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 | ||
|
|
||
| - name: Setup node | ||
| uses: actions/setup-node@v4 | ||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 #v4.4.0 | ||
| with: | ||
| node-version: 20.x | ||
| cache: 'yarn' | ||
|
|
@@ -34,7 +34,7 @@ jobs: | |
| echo "SCARB_VERSION=$SCARB_VERSION" >> "$GITHUB_ENV" | ||
|
|
||
| - name: Setup Scarb | ||
| uses: software-mansion/setup-scarb@v1 | ||
| uses: software-mansion/setup-scarb@f6ad35129872f897bdea556c09e11af8fb3293c0 #v1.5.1 | ||
| with: | ||
| scarb-version: ${{ env.SCARB_VERSION }} | ||
|
|
||
|
|
||
| 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
|
||
| 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 }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.