Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add feedback for semantic-release #212

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

atolivero
Copy link
Contributor

Do this to align with LO standard implementation

Do this to align with LO standard implementation
@@ -20,6 +20,7 @@ jobs:
registry-url: https://registry.npmjs.org
- name: Build and Test
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Last build failed - based on the docs, I thought semantic-release would pick up the token from the environment variable, but I'm adding this to see if it picks it up from there

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And I did confirm that this repo is configured for the npm environment in repo-standard, so this token should be available

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice change. If the setup-node action sets an .npmrc file (seems possible), then it will override our token.

I actually tried to fix the semantic-release docs around this a while back 😂, because they were wrong. Even with my fix, they're still not great :/

semantic-release/npm#413

@atolivero atolivero requested review from alexccl and swain April 6, 2022 17:40
Copy link
Contributor

@swain swain left a comment

Choose a reason for hiding this comment

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

Beautiful

@@ -20,6 +20,7 @@ jobs:
registry-url: https://registry.npmjs.org
- name: Build and Test
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice change. If the setup-node action sets an .npmrc file (seems possible), then it will override our token.

I actually tried to fix the semantic-release docs around this a while back 😂, because they were wrong. Even with my fix, they're still not great :/

semantic-release/npm#413

@atolivero atolivero merged commit 918498b into master Apr 6, 2022
@atolivero atolivero deleted the update-semantic-release-tooling branch April 6, 2022 17:44
@github-actions
Copy link

github-actions bot commented Apr 6, 2022

🎉 This PR is included in version 13.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@loscm
Copy link
Contributor

loscm commented Apr 7, 2022

Requested review from a random @lifeomic/security team member, @PlayDohDoh, due to term: token.

This review is not blocking and is for broader awareness. Consider if this change requires deeper security review and ask when it is necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants