Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 3a5bce6

Browse files
authored
Publish to npm registry (#517)
* Publish to npm registry * Generate types for all contracts
1 parent 8c069a2 commit 3a5bce6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/publish-contracts.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
with:
3636
node-version: '12.x'
3737
always-auth: true
38-
registry-url: 'https://npm.pkg.github.com'
38+
registry-url: 'https://registry.npmjs.org'
3939
scope: '@chainsafe'
4040
env:
41-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4242
- name: Install dependencies
4343
run: yarn install --frozen-lockfile --non-interactive --ignore-optional
4444
env:
@@ -53,10 +53,10 @@ jobs:
5353
- name: Build packages
5454
run: yarn run build
5555

56-
- name: Publish to github package registry
56+
- name: Publish to npm registry
5757
run: yarn publish --ignore-scripts --no-git-tag-version --no-commit-hooks --non-interactive
5858
env:
59-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
6060

6161
- name: Create Release
6262
id: create_release

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"build": "rollup -c",
2020
"publish-package": "npm run compile && npm run generate-types && npm run build && npm publish",
2121
"generate-types": "npm run generate-types:ethers",
22-
"generate-types:ethers": "npx typechain \"build/contracts/Bridge.json\" \"build/contracts/ERC20Handler.json\" \"build/contracts/ERC721Handler.json\" \"build/contracts/GenericHandler.json\" --target=ethers-v5 --out-dir src/ethers",
22+
"generate-types:ethers": "npx typechain \"build/contracts/*\" --target=ethers-v5 --out-dir src/ethers",
2323
"test": "echo \\\\\\\"Error: no test specified\\\\\\\" && exit 1"
2424
},
2525
"author": "Chainsafe Systems",

0 commit comments

Comments
 (0)