зеркало из https://github.com/microsoft/rnx-kit.git
ci: use fine-grained access token for publishing (#2239)
This commit is contained in:
Родитель
3db04bdc3d
Коммит
2c532c4f58
|
@ -6,8 +6,7 @@ jobs:
|
|||
build_and_publish:
|
||||
name: "Build and publish"
|
||||
permissions:
|
||||
contents: write # create releases (changesets/action), deploy to GitHub Pages (peaceiris/actions-gh-pages)
|
||||
pull-requests: write # create publish PRs (changesets/action)
|
||||
contents: write # deploy to GitHub Pages (peaceiris/actions-gh-pages)
|
||||
if: ${{ github.repository == 'microsoft/rnx-kit' }}
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
|
@ -40,7 +39,7 @@ jobs:
|
|||
publish: yarn publish:changesets
|
||||
version: yarn version:changesets
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
- name: Deploy website
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
|
|
Загрузка…
Ссылка в новой задаче