+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

ci: fix script and remove "-next" from workflow #3467

Merged
merged 2 commits into from
Oct 25, 2022
Merged

Conversation

ematipico
Copy link
Contributor

Summary

This PR fixes CI of @rometools/js-api:

  • the nightly version was not updated because it was trying to load a script that wasn't there (I had used the wrong one)
  • I updated the scripts to remove the code that appends -next to the version, this done the prepare us for the stable release
  • i updated the README.md link to point to the latest next npm version. We should update that link before we push the to the latest tag

Test Plan

I think I can trigger the workflow and check the version generated when packaging the tarball

@ematipico ematipico requested a review from a team October 21, 2022 09:24
@netlify
Copy link

netlify bot commented Oct 21, 2022

Deploy Preview for rometools canceled.

Name Link
🔨 Latest commit 3195966
🔍 Latest deploy log https://app.netlify.com/sites/rometools/deploys/6352a29f6f366a000948daed

Copy link
Contributor

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I can trigger the workflow and check the version generated when packaging the tarball

Did you do this? What was the outcome?

import * as fs from "node:fs";

const ROMECLI_ROOT = resolve(fileURLToPath(import.meta.url), "../..");
const MANIFEST_PATH = resolve(ROMECLI_ROOT, "package.json");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it resolving the CLI root or is the name of the variable incorrect?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just the name that is misleading. All scripts that have this name are copy-pasted. I updated the name of the variable.

@@ -10,9 +10,6 @@ const rootManifest = JSON.parse(
);

let version = rootManifest["version"];
if (!version.includes("-")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this no longer necessary for the CLI and VS Code extension or do we just assume that we won't publish another nightly release before the 10 release?

Copy link
Contributor Author

@ematipico ematipico Oct 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can assume that we won't publish any *-next release before the stable 10.0.0 (unless there are important fixes, but it doesn't seem there are). Nightly releases are safe because they have their versions appended with the first 7 digits of the last git commit, and they are published under the nightly tag (need to update this, in another PR)

@ematipico
Copy link
Contributor Author

I think I can trigger the workflow and check the version generated when packaging the tarball

Did you do this? What was the outcome?

Still some bug that I will fix ASAP

@ematipico
Copy link
Contributor Author

Happy to confirm that the script works as expected. You can check the last job run in debug mode.

@ematipico ematipico force-pushed the ci/remove-next-tags branch from d2bf876 to 3195966 Compare October 21, 2022 13:46
@ematipico ematipico merged commit d3d4da1 into main Oct 25, 2022
@ematipico ematipico deleted the ci/remove-next-tags branch October 25, 2022 12:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载