Updating release workflows to use a script instead of repeating and adding scripts for updating and resetting dependencies if attempting to build packages locally.
This commit is contained in:
parent
06a7a31847
commit
b2a21addc3
|
@ -48,18 +48,7 @@ jobs:
|
||||||
|
|
||||||
- run: yarn install --frozen-lockfile
|
- run: yarn install --frozen-lockfile
|
||||||
- name: Update versions
|
- name: Update versions
|
||||||
run: |
|
run: ./scripts/updateVersions.sh
|
||||||
version=$(cat lerna.json \
|
|
||||||
| grep version \
|
|
||||||
| head -1 \
|
|
||||||
| awk -F: '{gsub(/"/,"",$2);gsub(/[[:space:]]*/,"",$2); print $2}' \
|
|
||||||
| sed 's/[",]//g')
|
|
||||||
echo "Setting version $version"
|
|
||||||
yarn lerna exec "yarn version --no-git-tag-version --new-version=$version"
|
|
||||||
echo "Updating dependencies"
|
|
||||||
node scripts/syncLocalDependencies.js $version
|
|
||||||
echo "Syncing yarn workspace"
|
|
||||||
yarn
|
|
||||||
- run: yarn build
|
- run: yarn build
|
||||||
- run: yarn build:sdk
|
- run: yarn build:sdk
|
||||||
|
|
||||||
|
|
|
@ -41,18 +41,7 @@ jobs:
|
||||||
|
|
||||||
- run: yarn install --frozen-lockfile
|
- run: yarn install --frozen-lockfile
|
||||||
- name: Update versions
|
- name: Update versions
|
||||||
run: |
|
run: ./scripts/updateVersions.sh
|
||||||
version=$(cat lerna.json \
|
|
||||||
| grep version \
|
|
||||||
| head -1 \
|
|
||||||
| awk -F: '{gsub(/"/,"",$2);gsub(/[[:space:]]*/,"",$2); print $2}' \
|
|
||||||
| sed 's/[",]//g')
|
|
||||||
echo "Setting version $version"
|
|
||||||
yarn lerna exec "yarn version --no-git-tag-version --new-version=$version"
|
|
||||||
echo "Updating dependencies"
|
|
||||||
node scripts/syncLocalDependencies.js $version
|
|
||||||
echo "Syncing yarn workspace"
|
|
||||||
yarn
|
|
||||||
- run: yarn lint
|
- run: yarn lint
|
||||||
- run: yarn build
|
- run: yarn build
|
||||||
- run: yarn build:sdk
|
- run: yarn build:sdk
|
||||||
|
|
|
@ -47,33 +47,11 @@ jobs:
|
||||||
- name: Run Yarn
|
- name: Run Yarn
|
||||||
run: yarn
|
run: yarn
|
||||||
- name: Update versions
|
- name: Update versions
|
||||||
run: |
|
run: ./scripts/updateVersions.sh
|
||||||
version=$(cat lerna.json \
|
|
||||||
| grep version \
|
|
||||||
| head -1 \
|
|
||||||
| awk -F: '{gsub(/"/,"",$2);gsub(/[[:space:]]*/,"",$2); print $2}' \
|
|
||||||
| sed 's/[",]//g')
|
|
||||||
echo "Setting version $version"
|
|
||||||
yarn lerna exec "yarn version --no-git-tag-version --new-version=$version"
|
|
||||||
echo "Updating dependencies"
|
|
||||||
node scripts/syncLocalDependencies.js $version
|
|
||||||
echo "Syncing yarn workspace"
|
|
||||||
yarn
|
|
||||||
- name: Runt Yarn Lint
|
- name: Runt Yarn Lint
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
- name: Update versions
|
- name: Update versions
|
||||||
run: |
|
run: ./scripts/updateVersions.sh
|
||||||
version=$(cat lerna.json \
|
|
||||||
| grep version \
|
|
||||||
| head -1 \
|
|
||||||
| awk -F: '{gsub(/"/,"",$2);gsub(/[[:space:]]*/,"",$2); print $2}' \
|
|
||||||
| sed 's/[",]//g')
|
|
||||||
echo "Setting version $version"
|
|
||||||
yarn lerna exec "yarn version --no-git-tag-version --new-version=$version"
|
|
||||||
echo "Updating dependencies"
|
|
||||||
node scripts/syncLocalDependencies.js $version
|
|
||||||
echo "Syncing yarn workspace"
|
|
||||||
yarn
|
|
||||||
- name: Run Yarn Build
|
- name: Run Yarn Build
|
||||||
run: yarn build:docker:pre
|
run: yarn build:docker:pre
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
|
|
|
@ -104,4 +104,4 @@
|
||||||
"update-dotenv": "1.1.1"
|
"update-dotenv": "1.1.1"
|
||||||
},
|
},
|
||||||
"gitHead": "d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc"
|
"gitHead": "d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc"
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
echo "Resetting package versions"
|
||||||
|
yarn lerna exec "yarn version --no-git-tag-version --new-version=0.0.0"
|
||||||
|
echo "Updating dependencies"
|
||||||
|
node scripts/syncLocalDependencies.js "0.0.0"
|
||||||
|
git checkout package.json
|
||||||
|
echo "Package versions reset!"
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
version=$(cat lerna.json \
|
||||||
|
| grep version \
|
||||||
|
| head -1 \
|
||||||
|
| awk -F: '{gsub(/"/,"",$2);gsub(/[[:space:]]*/,"",$2); print $2}' \
|
||||||
|
| sed 's/[",]//g')
|
||||||
|
echo "Setting version $version"
|
||||||
|
yarn lerna exec "yarn version --no-git-tag-version --new-version=$version"
|
||||||
|
echo "Updating dependencies"
|
||||||
|
node scripts/syncLocalDependencies.js $version
|
||||||
|
echo "Syncing yarn workspace"
|
||||||
|
yarn
|
Loading…
Reference in New Issue