ci: pass token to checkout action to be set in git config (#4065)
This commit is contained in:
parent
0d1a3bb9f0
commit
460d1e6835
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@ -29,6 +29,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GIT_TOKEN }}
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
@ -57,9 +59,8 @@ jobs:
|
|||||||
- name: Publish Netlify CMS
|
- name: Publish Netlify CMS
|
||||||
uses: erezrokah/2fa-with-slack-action@v1.0.0
|
uses: erezrokah/2fa-with-slack-action@v1.0.0
|
||||||
env:
|
env:
|
||||||
GIT_TOKEN: ${{ secrets.PUSH_TOKEN }}
|
|
||||||
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
|
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||||
SLACK_TOKEN: ${{secrets.SLACK_TOKEN}}
|
SLACK_TOKEN: ${{secrets.SLACK_TOKEN}}
|
||||||
CONVERSATION_ID: ${{secrets.CONVERSATION_ID}}
|
CONVERSATION_ID: ${{secrets.CONVERSATION_ID}}
|
||||||
PUBLISH_COMMAND: "yarn\npublish:ci:github"
|
PUBLISH_COMMAND: "yarn\npublish:ci"
|
||||||
CODE_PATTERN: 'Enter OTP'
|
CODE_PATTERN: 'Enter OTP'
|
||||||
|
@ -41,14 +41,12 @@
|
|||||||
"format:prettier": "prettier \"{{packages,scripts,website}/**/,}*.{js,jsx,ts,tsx,css}\"",
|
"format:prettier": "prettier \"{{packages,scripts,website}/**/,}*.{js,jsx,ts,tsx,css}\"",
|
||||||
"publish": "run-s publish:before-manual-version publish:after-manual-version",
|
"publish": "run-s publish:before-manual-version publish:after-manual-version",
|
||||||
"publish:ci": "run-s publish:prepare \"publish:version --yes\" build publish:push-git \"publish:from-git --yes\"",
|
"publish:ci": "run-s publish:prepare \"publish:version --yes\" build publish:push-git \"publish:from-git --yes\"",
|
||||||
"publish:ci:github": "run-s publish:prepare \"publish:version --yes\" build publish:push-git:ci \"publish:from-git --yes\"",
|
|
||||||
"publish:before-manual-version": "run-s publish:prepare publish:version",
|
"publish:before-manual-version": "run-s publish:prepare publish:version",
|
||||||
"publish:after-manual-version": "run-s build publish:push",
|
"publish:after-manual-version": "run-s build publish:push",
|
||||||
"publish:prepare": "run-s bootstrap test",
|
"publish:prepare": "run-s bootstrap test",
|
||||||
"publish:version": "lerna version --no-push",
|
"publish:version": "lerna version --no-push",
|
||||||
"publish:push": "run-s publish:push-git publish:from-git",
|
"publish:push": "run-s publish:push-git publish:from-git",
|
||||||
"publish:push-git": "git push --follow-tags",
|
"publish:push-git": "git push --follow-tags",
|
||||||
"publish:push-git:ci": "git push \"https://$GITHUB_ACTOR:$GIT_TOKEN@github.com/$GITHUB_REPOSITORY.git\" --follow-tags",
|
|
||||||
"publish:from-git": "lerna publish from-git --pre-dist-tag beta",
|
"publish:from-git": "lerna publish from-git --pre-dist-tag beta",
|
||||||
"publish:dry-run": "run-s \"publish:version --no-git-tag-version\"",
|
"publish:dry-run": "run-s \"publish:version --no-git-tag-version\"",
|
||||||
"publish:prerelease": "run-s publish:prerelease:before-manual-version publish:after-manual-version",
|
"publish:prerelease": "run-s publish:prerelease:before-manual-version publish:after-manual-version",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user