Comment out failing step

This commit is contained in:
Pavel Murygin 2021-05-27 21:14:03 +03:00
parent 8d5d85d4ee
commit f2d98f1f8b

View File

@ -48,33 +48,33 @@ jobs:
rustup default nightly-2021-04-24-x86_64-unknown-linux-gnu
cargo test --no-fail-fast --release --all-features -- --test-threads=1
Build and publish npm:
docker:
- image: circleci/node:latest
resource_class: xlarge
steps:
- checkout
- attach_workspace:
at: ./npm
- run: |
yarn global add semver
PATH="$(yarn global bin):$PATH"
# Build and publish npm:
# docker:
# - image: circleci/node:latest
# resource_class: xlarge
# steps:
# - checkout
# - attach_workspace:
# at: ./npm
# - run: |
# yarn global add semver
# PATH="$(yarn global bin):$PATH"
# take npm version and increment it
PKG_NAME="$(cat package.json | jq -r .name)"
NPM_VERSION="$(yarn info --silent "$PKG_NAME" version || true)"
NEXT_NPM_VERSION="$(semver --increment patch "$NPM_VERSION" || true)"
# # take npm version and increment it
# PKG_NAME="$(cat package.json | jq -r .name)"
# NPM_VERSION="$(yarn info --silent "$PKG_NAME" version || true)"
# NEXT_NPM_VERSION="$(semver --increment patch "$NPM_VERSION" || true)"
# take local version
LOCAL_VERSION="$(cat package.json | jq -r .version)"
# # take local version
# LOCAL_VERSION="$(cat package.json | jq -r .version)"
# take maximum of the local and NEXT_NPM versions
MAX_VERSION="$(semver "$LOCAL_VERSION" "$NEXT_NPM_VERSION" "0.0.0" | tail -n1)"
# # take maximum of the local and NEXT_NPM versions
# MAX_VERSION="$(semver "$LOCAL_VERSION" "$NEXT_NPM_VERSION" "0.0.0" | tail -n1)"
yarn version --new-version ${MAX_VERSION} --no-git-tag-version
# yarn version --new-version ${MAX_VERSION} --no-git-tag-version
echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc
npm publish --access public
# echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc
# npm publish --access public
workflows:
version: 2
@ -84,6 +84,6 @@ workflows:
- Rust Tests:
requires:
- Build
- Build and publish npm:
requires:
- Rust Tests
# - Build and publish npm:
# requires:
# - Rust Tests