Skip to content

Commit d1db9be

Browse files
Switch package publishing to GitHub changelog releases (#14)
* Use GitHub changelog for package publishing - Switch Changesets to the GitHub changelog - Run publish through changesets/action with write access * Add agw-thirdweb to release surface workflow * Include agw-thirdweb in gatekeeper package checks
1 parent b6cf8e4 commit d1db9be

6 files changed

Lines changed: 730 additions & 738 deletions

File tree

.changeset/config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3-
"changelog": "@changesets/cli/changelog",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "Abstract-Foundation/abstract-packages" }
6+
],
47
"commit": false,
58
"fixed": [],
69
"linked": [],

.github/workflows/ci-release-surface.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- "@abstract-foundation/mpp"
1616
- "@abstract-foundation/agw-client"
1717
- "@abstract-foundation/agw-react"
18+
- "@abstract-foundation/agw-thirdweb"
1819
- "@abstract-foundation/agw-web"
1920
- "@abstract-foundation/web3-react-agw"
2021
- "@abstract-foundation/agw-cli"

.github/workflows/gatekeeper.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
- 'packages/mpp/**'
6969
- 'packages/agw-client/**'
7070
- 'packages/agw-react/**'
71+
- 'packages/agw-thirdweb/**'
7172
- 'packages/agw-web/**'
7273
- 'packages/web3-react-agw/**'
7374
- 'packages/agw-cli/**'
@@ -181,7 +182,7 @@ jobs:
181182
needs.release-surface.result == 'success' &&
182183
needs.agw-client.result == 'success'
183184
permissions:
184-
contents: read
185+
contents: write
185186
id-token: write
186187
uses: ./.github/workflows/publish.yml
187188
secrets: inherit

.github/workflows/publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
runs-on: ubuntu-latest
1818
environment:
1919
name: npm
20+
permissions:
21+
contents: write
22+
id-token: write
2023
env:
2124
NPM_CONFIG_PROVENANCE: "true"
2225
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -43,4 +46,10 @@ jobs:
4346
run: pnpm turbo run build --filter='./packages/*' --filter='!./packages/contracts' --force
4447

4548
- name: Publish packages
46-
run: pnpm changeset:publish
49+
uses: changesets/action@v1
50+
with:
51+
publish: pnpm changeset:publish
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
55+
NPM_CONFIG_PROVENANCE: "true"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"devDependencies": {
2828
"@arethetypeswrong/cli": "^0.16.4",
2929
"@biomejs/biome": "^2.4.9",
30+
"@changesets/changelog-github": "^0.6.0",
3031
"@changesets/cli": "^2.27.11",
3132
"husky": "^9.1.6",
3233
"lint-staged": "^15.2.10",

0 commit comments

Comments
 (0)