Skip to content

Commit 4baf26e

Browse files
committed
Fix publish commands for yarn
1 parent 8dce468 commit 4baf26e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
os: linux
3-
# Follow https://github.com/nodejs/LTS to decide when to remove a version
3+
# Follow https://github.com/nodejs/Release#release-schedule to decide when to remove a version
44
node_js:
55
- stable
66
- 14

gulp/tasks/publish.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ gulp.task('publish', function(callback) {
3838
throw new Error('Publishing is only allowed on the develop branch.');
3939
}
4040
// publish:website comes before publish:release, so paperjs.zip file is gone
41-
// before yarn publish:
41+
// before yarn npm publish:
4242
run(
4343
'publish:json',
4444
'publish:dist',
@@ -82,7 +82,7 @@ gulp.task('publish:release', function() {
8282
.pipe(git.checkout('master'))
8383
.pipe(git.merge('develop', { args: '-X theirs' }))
8484
.pipe(git.push('origin', ['master', 'develop'], { args: '--tags' }))
85-
.pipe(shell('yarn publish'));
85+
.pipe(shell('yarn npm publish'));
8686
});
8787

8888
gulp.task('publish:packages',
@@ -107,7 +107,7 @@ packages.forEach(function(name) {
107107
.pipe(git.commit(releaseMessage, opts))
108108
.pipe(git.tag('v' + options.version, releaseMessage, opts))
109109
.pipe(git.push('origin', 'master', { args: '--tags', cwd: path }))
110-
.pipe(shell('yarn publish', opts));
110+
.pipe(shell('yarn npm publish', opts));
111111
});
112112
});
113113

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"dist": "gulp dist",
2222
"zip": "gulp zip",
2323
"docs": "gulp docs",
24+
"publish": "gulp publish",
2425
"load": "gulp load",
2526
"jshint": "gulp jshint",
2627
"test": "gulp test",

0 commit comments

Comments
 (0)