Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
boly38 committed Dec 2, 2024
1 parent d7608b2 commit b65c54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/publish_step1_check_version.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ console.log(`Package version is ${version}`);

// Comparer avec le tag GitHub
const githubRefName = (process.env.GITHUB_REF_NAME || '').replace('refs/tags/', '');
if (githubRefName !== `v${version}`) {
if (githubRefName !== `v${version}` && githubRefName !== 'main') {// TODO second condition to test
console.error(`🔴 Error: Tag ${githubRefName} does not match version v${version}`);
process.exit(1);
}
Expand Down

0 comments on commit b65c54c

Please sign in to comment.