Skip to content

Commit 37f0db7

Browse files
authored
Merge pull request #6 from megaeth-labs/feat/production-workflow
Production workflow integration
2 parents 166cb77 + 558546f commit 37f0db7

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish Package
1+
name: Publish to npm
22

33
on:
44
push:
@@ -11,7 +11,7 @@ jobs:
1111
environment: publish
1212
permissions:
1313
contents: read
14-
packages: write
14+
id-token: write
1515
steps:
1616
- uses: actions/checkout@v4
1717

@@ -22,14 +22,12 @@ jobs:
2222
- uses: actions/setup-node@v4
2323
with:
2424
node-version: 20
25-
registry-url: "https://npm.pkg.github.com"
26-
scope: "@megaeth-labs"
25+
registry-url: "https://registry.npmjs.org"
2726

2827
- run: pnpm install --frozen-lockfile
2928

3029
- run: pnpm build
3130

32-
- run: npm publish
31+
- run: npm publish --provenance --access public
3332
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)