Skip to content

Commit aee640f

Browse files
authored
ci: separate npm publish steps (#966)
1 parent 94df1f0 commit aee640f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.circleci/config.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,18 @@ jobs:
139139
steps:
140140
- checkout
141141
- run:
142-
name: publish to npm
142+
#Make sure HEAD points to master
143+
# TODO: this is horrible as it makes the build non-reproducible
144+
# but the `release` job performs a bump commit as part of the release flow
145+
# so the fetch/rebase is actually needed (unless release process refactored...)
146+
name: rebase to master
143147
command: |
144-
#Make sure HEAD points to master
145-
# TODO: this is horrible as it makes the build non-reproducible
146-
# but the `release` job performs a bump commit as part of the release flow
147-
$ so the fetch/rebase is actually needed (unless release process refactored...)
148148
git checkout master
149149
git fetch
150150
git rebase
151+
- run:
152+
name: publish to npm
153+
command: |
151154
echo "//registry.npmjs.org/:_authToken=$CLOUD_MTA_BOT_NPM_TOKEN" > .npmrc
152155
npm install
153156
npm run ci

0 commit comments

Comments
 (0)