Skip to content

Commit 09ab933

Browse files
committed
docs(maintaining): update manual release instructions
1 parent f0bf566 commit 09ab933

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

MAINTAINING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ CODECOV_TOKEN=$(npx --yes dotenv-cli -p CODECOV_TOKEN) codecov
112112
# 10. Trigger semantic-release locally and generate a new release. This requires
113113
# having tokens for NPM and GitHub with the appropriate permissions. This
114114
# 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"
117118
```
118119

119120
<!-- lint ignore -->

0 commit comments

Comments
 (0)