mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Use a personal token for the changeset GitHub workflow (#2394)
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
'@gitbook/react-contentkit': minor
|
||||||
|
'@gitbook/react-math': minor
|
||||||
|
'@gitbook/react-openapi': minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix changeset CI workflow
|
||||||
@@ -31,5 +31,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
publish: npm run release
|
publish: npm run release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# Using a PAT instead of GITHUB_TOKEN because we need to run workflows when releases are created
|
||||||
|
# https://github.com/orgs/community/discussions/26875#discussioncomment-3253761
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|||||||
@@ -8,17 +8,19 @@ interface Test {
|
|||||||
threshold: number;
|
threshold: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We use low values for now to avoid failing the tests
|
||||||
|
// and to be able to see the results, and only catch major regressions.
|
||||||
const tests: Array<Test> = [
|
const tests: Array<Test> = [
|
||||||
{
|
{
|
||||||
url: 'https://docs.gitbook.com',
|
url: 'https://docs.gitbook.com',
|
||||||
strategy: 'desktop',
|
strategy: 'desktop',
|
||||||
threshold: 90,
|
threshold: 60,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
url: 'https://docs.gitbook.com',
|
url: 'https://docs.gitbook.com',
|
||||||
strategy: 'mobile',
|
strategy: 'mobile',
|
||||||
threshold: 80,
|
threshold: 30,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user