fix: update release job
MODIFY
.circleci/config.yml
.circleci/config.yml
---
version: 2
+
+orbs:
+ release-management: salesforce/npm-release-management@4
+
jobs:
lint: &lint
docker:
@@ -158,15 +162,6 @@ jobs:
paths:
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn
- release:
- <<: *lint
- steps:
- - add_ssh_keys
- - checkout
- - attach_workspace: {at: node_modules}
- - run: .circleci/setup_git
- - run: .circleci/release
-
workflows:
version: 2
oclif:
@@ -182,10 +177,9 @@ workflows:
- node-latest-command: {requires: [lint, compile-typescript] }
- node-latest-hook: {requires: [lint, compile-typescript] }
- cache: {requires: [release] }
- - release:
+ - release-management/release-package:
context: org-global
- filters:
- branches: {only: master}
+ github-release: true
requires:
- lint
- compile-typescript
@@ -195,6 +189,9 @@ workflows:
- node-latest-multi
- node-latest-command
- node-latest-hook
+ filters:
+ branches:
+ only: master
nightly:
triggers:
- schedule:

DELETE
.circleci/release
-#!/usr/bin/env bash
-
-set -ex
-
-.circleci/setup_git
-
-PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH
-
-yarn global add @oclif/semantic-release@3 semantic-release@17
-yarn install --frozen-lockfile
-semantic-release -e @oclif/semantic-release

DELETE
.circleci/setup_git
-#!/usr/bin/env bash
-
-set -ex
-
-if [[ ! -z "$GIT_EMAIL" ]] & [[ ! -z "$GIT_USERNAME" ]]; then
- git config --global push.default simple
- git config --global user.email "$GIT_EMAIL"
- git config --global user.name "$GIT_USERNAME"
-fi
-
-git submodule sync
-git submodule update --init --recursive

fix: update release job