Skip to content

Commit 416850f

Browse files
authored
ci: refactor binwrap handling (#964)
1 parent d5950bc commit 416850f

File tree

3 files changed

+1697
-30
lines changed

3 files changed

+1697
-30
lines changed

.circleci/config.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ jobs:
44

55
build-node:
66
docker:
7-
- image: circleci/node:16
7+
- image: cimg/node:lts
88
working_directory: ~/repo
99
steps:
1010
- checkout
11-
# `--ignore-scripts` is needed to avoid running the tests before
12-
# the `prepare` script created the binary wrapper in `./bin/mbt`
13-
- run: npm install --ignore-scripts
11+
- run: npm install
1412
- run: npm run ci
1513

1614
build:
@@ -136,24 +134,19 @@ jobs:
136134
137135
publish:
138136
docker:
139-
- image: circleci/node:16
140-
working_directory: ~/go/src/github.com/SAP/cloud-mta-build-tool
137+
- image: cimg/node:lts
138+
working_directory: ~/repo
141139
steps:
142-
- add_ssh_keys:
143-
fingerprints:
144-
- "c3:2b:e9:bb:d5:05:32:ab:df:ce:2b:c3:e5:f7:95:42"
145140
- checkout
146141
- run:
147142
name: publish to npm
148143
command: |
149-
#Make sure HEAD points to master
150-
git checkout master
151-
git fetch
152-
git rebase
153144
echo "//registry.npmjs.org/:_authToken=$CLOUD_MTA_BOT_NPM_TOKEN" > .npmrc
154145
npm install
146+
npm run ci
155147
npm publish
156148
- run:
149+
# This won't run if previous commands have failed so the tag should be removed **manually**
157150
name: remove dummy release tag
158151
command: |
159152
git push https://github.com/SAP/cloud-mta-build-tool.git --delete release

0 commit comments

Comments
 (0)