Upgrade to yarn 4 and use yarn to release canary builds (#1585)

* update to yarn 4

* update canary release script and remove old release.sh

* fix pkg.json
This commit is contained in:
cb-jake
2025-04-02 14:13:09 -06:00
committed by GitHub
parent 24dd3a9fe0
commit 342b729f13
14 changed files with 2885 additions and 2885 deletions
-1
View File
@@ -8,7 +8,6 @@ runs:
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org
cache: yarn
# For provenance https://docs.npmjs.com/generating-provenance-statements#prerequisites
- name: Install npm 9.5
+6 -6
View File
@@ -23,8 +23,8 @@ jobs:
node-version-file: '.nvmrc'
cache-dependency-path: 'yarn.lock'
- name: Install NPM dependencies
run: yarn install --immutable
- name: 'Setup'
uses: ./.github/actions/setup
- name: Lint
run: yarn lint
@@ -46,8 +46,8 @@ jobs:
node-version-file: '.nvmrc'
cache-dependency-path: '**/yarn.lock'
- name: Install NPM dependencies
run: yarn install --immutable
- name: 'Setup'
uses: ./.github/actions/setup
- name: Build packages
run: yarn build:packages
@@ -76,8 +76,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache-dependency-path: '**/yarn.lock'
- name: Install NPM dependencies
run: yarn install --immutable
- name: 'Setup'
uses: ./.github/actions/setup
- name: Runs compile asset script
run: |
+2 -2
View File
@@ -29,7 +29,7 @@ jobs:
uses: ./.github/actions/setup
- name: Set version
run: npm --no-git-tag-version version ${{ env.PACKAGE_VERSION }}-canary.$(date +'%Y%m%d') -w packages/wallet-sdk
run: yarn workspace @coinbase/wallet-sdk version ${{ env.PACKAGE_VERSION }}-canary.$(date +'%Y%m%d')
# Change to the wallet-sdk directory
- name: Change to wallet-sdk directory
@@ -47,7 +47,7 @@ jobs:
run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
- name: Publish to npm
run: npm publish --tag canary
run: yarn npm publish --tag canary
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+2 -2
View File
@@ -33,8 +33,8 @@ yarn-error.log*
examples/**/yarn.lock
.pnp.*
.yarn
!.yarn/releases
.yarn/install-state.gz
.yarn/cache
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-874
View File
File diff suppressed because one or more lines are too long
+935
View File
File diff suppressed because one or more lines are too long
+5 -7
View File
@@ -1,11 +1,9 @@
checksumBehavior: update
compressionLevel: mixed
enableGlobalCache: false
nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
yarnPath: .yarn/releases/yarn-3.6.1.cjs
yarnPath: .yarn/releases/yarn-4.8.1.cjs
+1 -1
View File
@@ -14,7 +14,7 @@
"dependencies": {
"@chakra-ui/icons": "^2.1.1",
"@chakra-ui/react": "^2.8.0",
"@coinbase/wallet-sdk": "*",
"@coinbase/wallet-sdk": "workspace:*",
"@coinbase/wallet-sdk-latest": "npm:@coinbase/wallet-sdk@latest",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
+6 -6
View File
@@ -12,15 +12,15 @@
],
"scripts": {
"build:packages": "yarn workspace @coinbase/wallet-sdk build",
"clean": "yarn workspaces foreach -ipv run clean && rm -rf node_modules && yarn",
"clean": "yarn workspaces foreach -A -ipv run clean && rm -rf node_modules && yarn",
"deploy": "yarn build:packages && yarn workspace sdk-playground export",
"dev": "yarn workspaces foreach -ipv run dev",
"lint": "yarn workspaces foreach -pt run lint",
"test": "yarn workspaces foreach -ipv run test",
"typecheck": "yarn workspaces foreach -pt run typecheck"
"dev": "yarn workspaces foreach -A -ipv run dev",
"lint": "yarn workspaces foreach -A -pt run lint",
"test": "yarn workspaces foreach -A -ipv run test",
"typecheck": "yarn workspaces foreach -A -pt run typecheck"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4"
},
"packageManager": "yarn@3.6.1"
"packageManager": "yarn@4.8.1"
}
-39
View File
@@ -1,39 +0,0 @@
#! /bin/bash
# COLORS
REDBOLD='\033[1;31m'
RED='\033[0;31m'
PURPLE='\033[0;35m'
TEAL='\033[0;36m'
GREEN='\033[1;32m'
mainBranch="master"
branch=$(git rev-parse --abbrev-ref HEAD)
if [ $branch == $mainBranch ]; then
echo -e "${PURPLE} Checking all branches are up-to-date..."
echo -e "================================================="
echo -e " git fetch --all"
git fetch --all
echo -e " git pull"
git pull
echo -e "-------------------------------------------------"
echo -e "${TEAL} Build production and publish..."
echo "================================================="
echo -e "rm -rf ./node_modules"
rm -rf ./node_modules
echo -e "rm -rf ./dist"
rm -rf ./dist
echo -e "yarn install"
yarn install
echo -e "yarn build"
yarn build
echo "================================================="
echo -e " ${GREEN} run 'npm publish'"
echo "================================================="
else
echo -e "${RED}⚠️ Need to publish from ${mainBranch} branch"
echo -e "${REDBOLD}Checking out ${mainBranch}... "
git checkout master
echo -e "${RED}Run again"
fi
+1378 -1378
View File
File diff suppressed because it is too large Load Diff