File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,9 @@ CODECOV_TOKEN=$(npx --yes dotenv-cli -p CODECOV_TOKEN) codecov
112
112
# 10. Trigger semantic-release locally and generate a new release. This requires
113
113
# having tokens for NPM and GitHub with the appropriate permissions. This
114
114
# command should be run in a clean environment using a user account without a
115
- # home directory (so no ~/.npmrc or ~/.gnupg directories)
116
- NPM_TOKEN=$( npx --yes dotenv-cli -p NPM_TOKEN) GH_TOKEN=$( npx --yes dotenv-cli -p GITHUB_TOKEN) HUSKY=0 UPDATE_CHANGELOG=true GIT_AUTHOR_NAME=$( git config --global --get user.name) GIT_COMMITTER_NAME=$( git config --global --get user.name) GIT_AUTHOR_EMAIL=$( git config --global --get user.email) GIT_COMMITTER_EMAIL=$( git config --global --get user.email) npx --no-install semantic-release --no-ci --extends " $( pwd) /release.config.js"
115
+ # home directory (so no ~/.npmrc or ~/.gnupg directories). On linux, you can use
116
+ # the "nobody" user (if they have a writable homedir) like below:
117
+ sudo -u nobody NPM_TOKEN=$( npx --yes dotenv-cli -p NPM_TOKEN) GH_TOKEN=$( npx --yes dotenv-cli -p GITHUB_TOKEN) HUSKY=0 UPDATE_CHANGELOG=true GIT_AUTHOR_NAME=$( git config --global --get user.name) GIT_COMMITTER_NAME=$( git config --global --get user.name) GIT_AUTHOR_EMAIL=$( git config --global --get user.email) GIT_COMMITTER_EMAIL=$( git config --global --get user.email) npx --no-install semantic-release --no-ci --extends " $( pwd) /release.config.js"
117
118
```
118
119
119
120
<!-- lint ignore -->
You can’t perform that action at this time.
0 commit comments