Skip to content

Commit 5b3204c

Browse files
committed
0.0.4
1 parent a2a0610 commit 5b3204c

File tree

7 files changed

+80
-3
lines changed

7 files changed

+80
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
jobs:
1212
main:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
id-token: write
1417
steps:
1518
- uses: actions/checkout@v3
1619
with:
@@ -59,7 +62,7 @@ jobs:
5962
- run: pnpm exec nx test loopring-sdk --ci --code-coverage
6063
- run: pnpm exec nx build loopring-sdk
6164

62-
- run: pnpm exec nx publish loopring-sdk --ver ${{ github.event.release.tag_name }}
65+
- run: pnpm exec nx publish loopring-sdk --ver ${{ github.event.release.tag_name }} --tag latest
6366
if: github.event_name == 'release'
6467
env:
6568
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"verdaccio": "^5.26.2",
3434
"vite": "~4.3.9",
3535
"vite-plugin-dts": "~2.3.0",
36+
"vite-plugin-static-copy": "^0.17.0",
3637
"whatwg-fetch": "^3.6.18"
3738
},
3839
"nx": {

packages/loopring-sdk/LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2023 LoopExchange
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

packages/loopring-sdk/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"name": "@loopexchange-labs/loopring-sdk",
3+
"description": "Loopring SDK",
4+
"license": "MIT",
35
"repository": {
46
"type": "git",
57
"url": "https://github.com/loopexchange-labs/loopring-sdk.git"
68
},
7-
"version": "0.0.3",
9+
"version": "0.0.0",
810
"main": "./index.js",
911
"module": "./index.mjs",
1012
"typings": "./index.d.ts"

packages/loopring-sdk/vite.config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,26 @@ import { defineConfig } from 'vite';
33

44
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
55
import dts from 'vite-plugin-dts';
6+
import { viteStaticCopy } from 'vite-plugin-static-copy';
67
import * as path from 'path';
78

89
export default defineConfig({
910
cacheDir: '../../node_modules/.vite/loopring-sdk',
1011

1112
plugins: [
13+
viteStaticCopy({
14+
targets: [
15+
{
16+
src: 'LICENSE',
17+
dest: '',
18+
},
19+
{
20+
src: 'README.md',
21+
dest: '',
22+
},
23+
],
24+
}),
25+
1226
dts({
1327
entryRoot: 'src',
1428
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),

pnpm-lock.yaml

Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/scripts/publish.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ try {
5757
}
5858

5959
// Execute "npm publish" to publish
60-
execSync(`npm publish --access public --tag ${tag}`);
60+
execSync(`npm publish --access public --provenance --tag ${tag}`);

0 commit comments

Comments
 (0)