Skip to content

Commit 9cd8068

Browse files
committed
chore(ci): Install the correct version of the CircleCI CLI when publishing
1 parent 2f24401 commit 9cd8068

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.circleci/config.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,16 @@ jobs:
2323
docker:
2424
- image: circleci/node:8
2525
environment:
26-
- PATH: '/opt/yarn/yarn-v1.5.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
26+
- PATH: '~/bin:/opt/yarn/yarn-v1.5.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
2727
steps:
2828
- attach_workspace:
2929
at: .
30+
- run:
31+
name: Install latest CircleCI CLI
32+
command: |
33+
mkdir -p ~/bin
34+
curl -o ~/bin/circleci https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci
35+
chmod +x ~/bin/circleci
3036
- restore_cache:
3137
key: yarn-cache-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
3238
- run:
@@ -42,7 +48,7 @@ jobs:
4248
mkdir -p ~/.ssh
4349
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==' >> ~/.ssh/known_hosts
4450
- run:
45-
name: Publish to NPM
51+
name: Publish to CircleCI Orb Registry
4652
command: yarn semantic-release
4753

4854
workflows:

0 commit comments

Comments
 (0)