-
Notifications
You must be signed in to change notification settings - Fork 100
"Failed to replace env in config: ${NPM_TOKEN}" after release #2
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
Comments
I also got this problem that occurs whether I use this action library or use the semantic-release configuration: "plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/exec", {
"successCmd": "your code here"
}],
"@semantic-release/npm",
"@semantic-release/github"
] workflow file: uses: cycjimmy/semantic-release-action@v2
id: semantic
with:
extra_plugins: |
@semantic-release/exec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
Issue: "Failed to replace env in config: ${NPM_TOKEN}" after release #2 solution:semantic-release/semantic-release#974 (comment)
## [2.0.1](v2.0.0...v2.0.1) (2019-10-26) ### Bug Fixes * **.npmrc:** clean up `.npmrc` file in the repo after releasing ([a0ef86e](a0ef86e)), closes [#2](#2) [/github.com/semantic-release/semantic-release/issues/974#issuecomment-546577677](https://github.com//github.com/semantic-release/semantic-release/issues/974/issues/issuecomment-546577677)
@filipesilva |
That's great, thank you! |
Describe the bug
Heya, if I try to use a
yarn create
command after the release action goes through, I get the following error:To Reproduce
Steps to reproduce the behavior:
My workflow looks like this: https://github.com/filipesilva/create-cljs-app/blob/c4461fdc07b9a92141fc3ae1fab9db783b5665be/.github/workflows/nodejs.yml#L37-L62
I get the error in the
Try to use release
step. You can see an failing run in https://github.com/filipesilva/create-cljs-app/runs/275024115.Expected behavior
I expected no error. I suppose it happens because
semantic-release-action
writes to the.npmrc
file? But I don't understand why the variable that I had to set as a secret doesn't work anymore.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: