Skip to content

Commit

Permalink
fix: push tags in next hook
Browse files Browse the repository at this point in the history
  • Loading branch information
hborawski committed Jan 14, 2021
1 parent d57006d commit f908c36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/cocoapods/__tests__/cocoapods.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ describe("Cocoapods Plugin", () => {
});

expect(versions).toContain("1.0.0-next.0");
expect(exec).toBeCalledTimes(3);
expect(exec).toBeCalledTimes(4);
expect(exec).toHaveBeenCalledWith("git", ["checkout", "./Test.podspec"]);

expect(mock).toHaveBeenLastCalledWith(
Expand Down
2 changes: 2 additions & 0 deletions plugins/cocoapods/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ export default class CocoapodsPlugin implements IPlugin {
`"Tag pre-release: ${prerelease}"`,
]);

await execPromise("git", ["push", auto.remote, branch, "--tags"]);

updatePodspecVersion(this.options.podspecPath, prerelease);

// Publish the next podspec, committing it isn't needed for specs push
Expand Down

0 comments on commit f908c36

Please sign in to comment.