diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index ba1f868..c4434e0 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -30,7 +30,7 @@ jobs: # Vuepress's deps is broken. Planning to move to vitepress. # # Build - # - uses: actions/checkout@v3 + - uses: actions/checkout@v3 # - uses: actions/setup-node@v3 # with: # node-version: ${{ vars.NODE_VERSION }} diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index e92f715..5b6e762 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -18,6 +18,11 @@ jobs: - run: npm run lint - run: npm run test - run: npm run build - - run: npx -y can-npm-publish && npm publish + - name: publish rx-nostr + run: npx -y can-npm-publish packages/core && npm publish -w packages/core + env: + NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} + - name: publish rx-nostr-crypto + run: npx -y can-npm-publish packages/crypto && npm publish -w packages/crypto env: NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} diff --git a/package-lock.json b/package-lock.json index 16fd64c..a080065 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1052,11 +1052,11 @@ "sprintf-js": "~1.0.2" } }, - "node_modules/@rx-nostr/crypto": { + "node_modules/rx-nostr-crypto": { "resolved": "packages/crypto", "link": true }, - "node_modules/@rx-nostr/docs": { + "node_modules/rx-nostr-docs": { "resolved": "packages/docs", "link": true }, @@ -4814,7 +4814,7 @@ }, "packages/core": { "name": "rx-nostr", - "version": "2.7.3", + "version": "3.0.0", "license": "MIT", "dependencies": { "nostr-typedef": "^0.8.0", @@ -5592,7 +5592,7 @@ } }, "packages/crypto": { - "name": "@rx-nostr/crypto", + "name": "rx-nostr-crypto", "version": "3.0.0", "license": "MIT", "dependencies": { @@ -6069,7 +6069,7 @@ } }, "packages/docs": { - "name": "@rx-nostr/docs", + "name": "rx-nostr-docs", "devDependencies": { "@vuepress/bundler-vite": "^2.0.0-rc.7", "@vuepress/theme-default": "^2.0.0-rc.14", diff --git a/packages/core/package.json b/packages/core/package.json index a506052..26fd391 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "rx-nostr", - "version": "2.7.3", + "version": "3.0.0", "description": "A library based on RxJS, which allows Nostr applications to easily communicate with relays.", "author": "penpenpng", "keywords": [ diff --git a/packages/crypto/README.md b/packages/crypto/README.md index 7f5182e..f97d3bd 100644 --- a/packages/crypto/README.md +++ b/packages/crypto/README.md @@ -1 +1 @@ -# @rx-nostr/crypto +# rx-nostr-crypto diff --git a/packages/crypto/package.json b/packages/crypto/package.json index 64b8617..c96c7dc 100644 --- a/packages/crypto/package.json +++ b/packages/crypto/package.json @@ -1,5 +1,5 @@ { - "name": "@rx-nostr/crypto", + "name": "rx-nostr-crypto", "version": "3.0.0", "author": "penpenpng", "keywords": [ diff --git a/packages/crypto/vite.config.ts b/packages/crypto/vite.config.ts index 4ad4b56..94ff6a7 100644 --- a/packages/crypto/vite.config.ts +++ b/packages/crypto/vite.config.ts @@ -5,7 +5,7 @@ import dts from "vite-plugin-dts"; export default defineConfig({ build: { lib: { - name: "@rx-nostr/crypto", + name: "rx-nostr-crypto", fileName: (format) => `index.${format}.js`, entry: path.resolve(__dirname, "src/index.ts"), formats: ["es", "cjs", "umd"], diff --git a/packages/docs/package.json b/packages/docs/package.json index 7870174..6497698 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -1,5 +1,5 @@ { - "name": "@rx-nostr/docs", + "name": "rx-nostr-docs", "private": true, "scripts": { "dev": "vuepress dev .",