Skip to content

fix: Add feedback for semantic-release#212

Merged
atolivero merged 1 commit intomasterfrom
update-semantic-release-tooling
Apr 6, 2022
Merged

fix: Add feedback for semantic-release#212
atolivero merged 1 commit intomasterfrom
update-semantic-release-tooling

Conversation

@atolivero
Copy link
Contributor

Do this to align with LO standard implementation

Do this to align with LO standard implementation
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

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

@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

registry-url: https://registry.npmjs.org
- name: Build and Test
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
Copy link

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 loscm requested a review from PlayDohDoh April 7, 2022 12:01
@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