Skip to content

Commit 781d382

Browse files
authored
chore: upgrade MetaMask action to v6 (#260)
* chore: upgrade MetaMask action to v6 and update package manager to yarn@4.16.0 * chore: update package manager version to yarn@4.16.0 in yarn.config.cjs
1 parent 461140a commit 781d382

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989
name: Publish release
9090
permissions:
9191
contents: write
92+
id-token: write
9293
uses: ./.github/workflows/publish-release.yml
9394
secrets:
9495
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/publish-release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_call:
55
secrets:
66
NPM_TOKEN:
7-
required: true
7+
required: false
88
SLACK_WEBHOOK_URL:
99
required: true
1010

@@ -49,7 +49,7 @@ jobs:
4949
path: ./packages
5050
- name: Dry Run Publish
5151
# omit npm-token token to perform dry run publish
52-
uses: MetaMask/action-npm-publish@v5
52+
uses: MetaMask/action-npm-publish@v6
5353
with:
5454
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
5555
subteam: S042S7RE4AE # @metamask-npm-publishers
@@ -60,6 +60,9 @@ jobs:
6060
environment: npm-publish
6161
runs-on: ubuntu-latest
6262
needs: publish-npm-dry-run
63+
permissions:
64+
contents: read
65+
id-token: write
6366
steps:
6467
- name: Checkout and setup environment
6568
uses: MetaMask/action-checkout-and-setup@v1
@@ -71,7 +74,7 @@ jobs:
7174
name: publish-release-artifacts-${{ github.sha }}
7275
path: ./packages
7376
- name: Publish
74-
uses: MetaMask/action-npm-publish@v5
77+
uses: MetaMask/action-npm-publish@v6
7578
with:
7679
npm-token: ${{ secrets.NPM_TOKEN }}
7780
env:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"typescript-eslint": "^8.0.0",
5656
"viem": "2.31.4"
5757
},
58-
"packageManager": "yarn@4.14.1",
58+
"packageManager": "yarn@4.16.0",
5959
"engines": {
6060
"node": "^18.18 || >=20"
6161
},

yarn.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ module.exports = defineConfig({
179179
if (isChildWorkspace) {
180180
workspace.unset('packageManager');
181181
} else {
182-
expectWorkspaceField(workspace, 'packageManager', 'yarn@4.14.1');
182+
expectWorkspaceField(workspace, 'packageManager', 'yarn@4.16.0');
183183
}
184184

185185
// All packages must specify a minimum Node.js version of 18.18.

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Manual changes might be lost - proceed with caution!
33

44
__metadata:
5-
version: 9
5+
version: 10
66
cacheKey: 10
77

88
"@adraffy/ens-normalize@npm:^1.11.0":

0 commit comments

Comments
 (0)