Skip to content

Commit 1126f2f

Browse files
committed
docs: document release process details in publish workflow
1 parent 3fd30c0 commit 1126f2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
with:
1818
ref: 'main'
1919
fetch-depth: 0
20+
# Repository admin required to evade PR+checks branch protection
2021
token: ${{ secrets.GH_TOKEN }}
2122
- uses: actions/setup-node@v4
2223
with:
@@ -29,16 +30,20 @@ jobs:
2930
max_attempts: 3
3031
command: yarn && yarn lerna:prepare
3132
- name: GIT Setup
33+
# Alter branding of release commit, despite GITHUB_TOKEN having real owner
3234
run: |
3335
git config --global user.name 'Invertase Publisher'
3436
git config --global user.email '[email protected]'
3537
- name: Publish Packages
38+
# for lerna, you must write the token out to .npmrc like this
3639
run: |
3740
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
3841
git diff --exit-code
3942
yarn lerna changed
4043
yarn lerna version --yes --force-publish=*
4144
yarn lerna publish from-package --yes
4245
env:
46+
# new style token w/scope for `@react-native-firebase` required
47+
# to work with npmjs.com 2FA-or-automation-token package requirement
4348
NPM_TOKEN: ${{ secrets.MIKEHARDY_NPM_TOKEN }}
4449
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)