Skip to content

Commit

Permalink
docs(maintaining): update maintenance instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Jan 29, 2023
1 parent ef95dd8 commit 1d6f92d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions MAINTAINING.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ npm run clean
npm run lint:all

# 4. Build distributables.
npm run build:dist
npm run build:dist -ws

# 5. Build auxiliary documentation.
npm run build:docs
npm run build:docs -ws

# 6. Build any external executables (used in GitHub Actions workflows).
npm run build:externals
Expand All @@ -115,10 +115,14 @@ CODECOV_TOKEN=$(npx --yes dotenv-cli -p CODECOV_TOKEN) codecov
# 10. Trigger semantic-release locally and generate a new release. This requires
# having tokens for NPM and GitHub with the appropriate permissions.
#
# Do a dry run first:
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="$(npx --yes dotenv-cli -p GIT_AUTHOR_NAME)" GIT_COMMITTER_NAME="$(npx --yes dotenv-cli -p GIT_COMMITTER_NAME)" GIT_AUTHOR_EMAIL="$(npx --yes dotenv-cli -p GIT_AUTHOR_EMAIL)" GIT_COMMITTER_EMAIL="$(npx --yes dotenv-cli -p GIT_COMMITTER_EMAIL)" node node_modules/.bin/semantic-release --no-ci --extends "$(pwd)/release.config.js" --dry-run
# Then do the actual publish:
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="$(npx --yes dotenv-cli -p GIT_AUTHOR_NAME)" GIT_COMMITTER_NAME="$(npx --yes dotenv-cli -p GIT_COMMITTER_NAME)" GIT_AUTHOR_EMAIL="$(npx --yes dotenv-cli -p GIT_AUTHOR_EMAIL)" GIT_COMMITTER_EMAIL="$(npx --yes dotenv-cli -p GIT_COMMITTER_EMAIL)" node node_modules/.bin/semantic-release --no-ci --extends "$(pwd)/release.config.js"
# First, set ROOT:
ROOT=`git rev-parse --show-toplevel`
# Then change directory into the package you want to release:
cd packages/package-id-here
# Then do a dry run:
NPM_TOKEN="$(cd $ROOT && npx --yes dotenv-cli -p NPM_TOKEN)" GH_TOKEN="$(cd $ROOT && npx --yes dotenv-cli -p GITHUB_TOKEN)" HUSKY=0 UPDATE_CHANGELOG=true GIT_AUTHOR_NAME="$(cd $ROOT && npx --yes dotenv-cli -p GIT_AUTHOR_NAME)" GIT_COMMITTER_NAME="$(cd $ROOT && npx --yes dotenv-cli -p GIT_COMMITTER_NAME)" GIT_AUTHOR_EMAIL="$(cd $ROOT && npx --yes dotenv-cli -p GIT_AUTHOR_EMAIL)" GIT_COMMITTER_EMAIL="$(cd $ROOT && npx --yes dotenv-cli -p GIT_COMMITTER_EMAIL)" node $ROOT/node_modules/.bin/semantic-release --no-ci --extends "$(pwd)/release.config.js" --dry-run
# Finally, do the actual publish:
NPM_TOKEN="$(cd $ROOT && npx --yes dotenv-cli -p NPM_TOKEN)" GH_TOKEN="$(cd $ROOT && npx --yes dotenv-cli -p GITHUB_TOKEN)" HUSKY=0 UPDATE_CHANGELOG=true GIT_AUTHOR_NAME="$(cd $ROOT && npx --yes dotenv-cli -p GIT_AUTHOR_NAME)" GIT_COMMITTER_NAME="$(cd $ROOT && npx --yes dotenv-cli -p GIT_COMMITTER_NAME)" GIT_AUTHOR_EMAIL="$(cd $ROOT && npx --yes dotenv-cli -p GIT_AUTHOR_EMAIL)" GIT_COMMITTER_EMAIL="$(cd $ROOT && npx --yes dotenv-cli -p GIT_COMMITTER_EMAIL)" node $ROOT/node_modules/.bin/semantic-release --no-ci --extends "$(pwd)/release.config.js"
```

<!-- lint ignore -->
Expand Down

0 comments on commit 1d6f92d

Please sign in to comment.