Skip to content

Commit 1767cd4

Browse files
committed
Push the version tag after publishing
1 parent bc46890 commit 1767cd4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/auto-publish-action.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,14 @@ const npmCommand = process.platform === 'win32' ? 'npm.cmd' : 'npm';
7171
// Publish to npm
7272
await runInWorkspace(npmCommand, ['publish']);
7373

74-
console.log('pushing version commit and tag...');
74+
console.log('pushing version commit...');
7575

7676
// Push the package.json commit to the repo
7777
const remoteRepo = `https://${process.env.GITHUB_ACTOR}:${process.env.GITHUB_TOKEN}@github.com/${process.env.GITHUB_REPOSITORY}.git`;
7878
await runInWorkspace('git', ['push', remoteRepo]);
79+
80+
console.log('pushing version tag...');
81+
await runInWorkspace('git', ['push', remoteRepo, 'v' + newVersion]);
7982
} catch (e) {
8083
logError(e);
8184
exitFailure('Failed to bump version');

0 commit comments

Comments
 (0)