We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 166cb77 + 558546f commit 37f0db7Copy full SHA for 37f0db7
1 file changed
.github/workflows/publish.yml
@@ -1,4 +1,4 @@
1
-name: Publish Package
+name: Publish to npm
2
3
on:
4
push:
@@ -11,7 +11,7 @@ jobs:
11
environment: publish
12
permissions:
13
contents: read
14
- packages: write
+ id-token: write
15
steps:
16
- uses: actions/checkout@v4
17
@@ -22,14 +22,12 @@ jobs:
22
- uses: actions/setup-node@v4
23
with:
24
node-version: 20
25
- registry-url: "https://npm.pkg.github.com"
26
- scope: "@megaeth-labs"
+ registry-url: "https://registry.npmjs.org"
27
28
- run: pnpm install --frozen-lockfile
29
30
- run: pnpm build
31
32
- - run: npm publish
+ - run: npm publish --provenance --access public
33
env:
34
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35
- NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments