Skip to content

Commit 7e46448

Browse files
committed
CI: fix release workflow
1 parent 15361dd commit 7e46448

4 files changed

Lines changed: 403 additions & 220 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
with:
1919
submodules: true
2020

21+
- name: Setup .npmrc for pulling/publishing from/to github packages
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 18
25+
registry-url: 'https://npm.pkg.github.com'
26+
scope: '@valorem-labs-inc'
27+
2128
- name: Install pnpm
2229
uses: pnpm/action-setup@v2
2330
with:
@@ -37,28 +44,19 @@ jobs:
3744
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
3845
run: pnpm audit signatures
3946

40-
- name: Setup .npmrc file to publish to npm
41-
uses: actions/setup-node@v4
42-
with:
43-
node-version: 18
44-
registry-url: 'https://registry.npmjs.org'
45-
scope: '@valorem-labs-inc'
46-
47-
- name: Publish
47+
- name: Publish to Github Packages
4848
env:
49-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
GHP_PAT: ${{ secrets.GHP_PAT }}
5050
run: pnpm ci:release
5151

52-
- name: Setup .npmrc for publishing to github packages
52+
- name: Setup .npmrc file to publish to npm
5353
uses: actions/setup-node@v4
5454
with:
5555
node-version: 18
56-
registry-url: 'https://npm.pkg.github.com'
56+
registry-url: 'https://registry.npmjs.org'
5757
scope: '@valorem-labs-inc'
5858

59-
# Runs changeset version to see if pkg v needs bumped
60-
# () || true prevents exit code 1 when there is no v bump needed
61-
- name: Publish to Github Packages
59+
- name: Publish to npm
6260
env:
63-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6462
run: pnpm ci:release

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ dedupe-peer-dependents=true
44
shared-workspace-lockfile=false
55
prefer-workspace-packages=true
66

7-
//npm.pkg.github.com/:_authToken=${CR_PAT}
7+
//npm.pkg.github.com/:_authToken=${GHP_PAT}
88
@valorem-labs-inc:registry=https://npm.pkg.github.com

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
"@types/react": "^18.2.31",
3737
"@types/react-dom": "^18.2.14",
3838
"@vercel/style-guide": "^5.0.1",
39-
"@vitest/coverage-v8": "^0.34.6",
39+
"@vitest/coverage-v8": "^1.0.4",
4040
"@wagmi/cli": "^1.5.2",
41-
"@wagmi/core": "^1.4.7",
41+
"@wagmi/core": "1.4.7",
4242
"abitype": "0.8.7",
4343
"connectkit": "^1.5.3",
4444
"eslint": "^8.52.0",
@@ -52,7 +52,7 @@
5252
"siwe": "^2.1.4",
5353
"typedoc": "^0.25.2",
5454
"typedoc-plugin-missing-exports": "^2.1.0",
55-
"vitest": "^0.34.6"
55+
"vitest": "^1.0.4"
5656
},
5757
"peerDependencies": {
5858
"@bufbuild/buf": "^1.27.1",
@@ -62,7 +62,7 @@
6262
"@connectrpc/connect-web": "^1.1.2",
6363
"@tanstack/react-query": "^4.36.1",
6464
"@valorem-labs-inc/sdk": "^0.0.4",
65-
"@wagmi/core": "^1.4.7",
65+
"@wagmi/core": "1.4.7",
6666
"abitype": "0.8.7",
6767
"connectkit": "^1.5.3",
6868
"react": "17.x || 18.x",

0 commit comments

Comments
 (0)