Skip to content

Commit

Permalink
Merge pull request #121 from nabla-studio/davidesegullo/fix-publish
Browse files Browse the repository at this point in the history
Davidesegullo/fix publish
  • Loading branch information
DavideSegullo authored Oct 26, 2024
2 parents dce20ba + c4e2397 commit 1720404
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 35 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ jobs:
- name: Run Nx release version (dry-run)
run: bun run tools/scripts/release.ts

# Step 9: Clean up dist directory
# Step 9: Run publish in dry-run mode
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: bunx nx release publish --verbose --dry-run

# Step 10: Clean up dist directory
- name: Cleanup dist directory
run: rm -rf ./dist # Remove the dist directory to start fresh
10 changes: 7 additions & 3 deletions .github/workflows/release-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,15 @@ jobs:

# Step 9: Run the release
- name: Run Nx release version
env:
run: bun run tools/scripts/release.ts -d false

# Step 10: Run publish
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: bun run tools/scripts/release.ts -d false
run: bunx nx release publish --verbose --tag $RELEASE_TAG

# Step 10: Clean up dist directory
# Step 11: Clean up dist directory
- name: Cleanup dist directory
run: rm -rf ./dist # Remove the dist directory to start fresh
10 changes: 7 additions & 3 deletions .github/workflows/release-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,15 @@ jobs:

# Step 9: Run the release
- name: Run Nx release version
env:
run: bun run tools/scripts/release.ts -d false

# Step 10: Run publish
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: bun run tools/scripts/release.ts -d false
run: bunx nx release publish --verbose

# Step 10: Clean up dist directory
# Step 11: Clean up dist directory
- name: Cleanup dist directory
run: rm -rf ./dist # Remove the dist directory to start fresh
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"cookies-next": "^4.2.1",
"superjson": "^2.2.1",
"zustand": "^4.5.0",
"@quirks/store": "0.27.2-next.0"
"@quirks/store": "0.27.2-next.1"
},
"peerDependencies": {
"next": "^13"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"sideEffects": false,
"type": "module",
"dependencies": {
"@quirks/store": "0.27.2-next.0",
"@quirks/store": "0.27.2-next.1",
"@quirks/core": "0.19.1-next.1",
"babel-plugin-module-resolver": "^5.0.0",
"@craftzdog/react-native-buffer": "^6.0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"sideEffects": false,
"type": "module",
"dependencies": {
"@quirks/store": "0.27.2-next.0",
"@quirks/store": "0.27.2-next.1",
"@quirks/core": "0.19.1-next.1",
"cosmjs-types": "^0.9.0",
"@cosmjs/amino": "^0.32.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"sideEffects": false,
"type": "module",
"dependencies": {
"@quirks/store": "0.27.2-next.0",
"@quirks/store": "0.27.2-next.1",
"@quirks/core": "0.19.1-next.1",
"vue-zustand": "^0.6.0",
"eventemitter3": "^5.0.1",
Expand Down
10 changes: 1 addition & 9 deletions packages/wallet-registry/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# wallet-registry

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build wallet-registry` to build the library.

## Running unit tests

Run `nx test wallet-registry` to execute the unit tests via [Jest](https://jestjs.io).
This library defines data structure from wallet registry, it's helpful to retrieve official metadata for wallet connect and also allow us to access wallet details.
13 changes: 0 additions & 13 deletions tools/scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,6 @@ const release = async () => {
dryRun: options.dryRun,
verbose: options.verbose,
});

// The returned number value from releasePublish will be zero if all projects are published successfully, non-zero if not
if (!options.dryRun) {
const publishStatus = await releasePublish({
dryRun: options.dryRun,
verbose: options.verbose,
tag,
});

const code = Math.max(...Object.values(publishStatus).map(({ code }) => code))

process.exit(code);
}

process.exit();
}
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5025,7 +5025,7 @@
dependencies:
"@types/yargs-parser" "*"

"@types/yargs@^17.0.8", "@types/yargs@^17.0.33":
"@types/yargs@^17.0.33", "@types/yargs@^17.0.8":
version "17.0.33"
resolved "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz"
integrity sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==
Expand Down Expand Up @@ -18959,7 +18959,7 @@ yargs@^15.1.0, yargs@^15.3.1:
require-directory "^2.1.1"
require-main-filename "^2.0.0"

yargs@^17.0.0, yargs@^17.3.1, yargs@^17.5.1, yargs@^17.6.2, yargs@^17.7.2, yargs@^17.7.2:
yargs@^17.0.0, yargs@^17.3.1, yargs@^17.5.1, yargs@^17.6.2, yargs@^17.7.2:
version "17.7.2"
resolved "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz"
integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==
Expand Down

0 comments on commit 1720404

Please sign in to comment.