Skip to content

Commit 94581ee

Browse files
committed
update npm for release
1 parent bfcdcbb commit 94581ee

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- main
77
pull_request:
8+
release:
9+
types: [published]
810

911
jobs:
1012
main:
@@ -59,3 +61,8 @@ jobs:
5961
- run: pnpm exec nx tsc loopring-sdk
6062
- run: pnpm exec nx test loopring-sdk --ci --code-coverage
6163
- run: pnpm exec nx build loopring-sdk
64+
65+
- run: pnpm exec nx publish loopring-sdk --ver ${{ github.event.release.tag_name }}
66+
if: github.event_name == 'release'
67+
env:
68+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
strict-peer-dependencies=false
22
auto-install-peers=true
3+
4+
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
5+
@loopexchange-labs:registry=https://npm.pkg.github.com
6+
always-auth=true

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"tslib": "^2.6.2"
99
},
1010
"devDependencies": {
11+
"@nx/devkit": "^16.8.1",
1112
"@nx/eslint-plugin": "16.8.1",
1213
"@nx/jest": "16.8.1",
1314
"@nx/js": "16.8.1",

pnpm-lock.yaml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)