This commit is contained in:
Elizabeth Craig 2023-02-21 12:28:12 -08:00 коммит произвёл GitHub
Родитель 0c1036d2f3
Коммит 465def7fbd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 308 добавлений и 3389 удалений

1
.github/workflows/pr.yml поставляемый
Просмотреть файл

@ -26,4 +26,3 @@ jobs:
- run: yarn
- run: yarn checkchange
- run: yarn build
- run: yarn test

30
.github/workflows/release.yml поставляемый
Просмотреть файл

@ -1,6 +1,3 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Release
on:
@ -11,6 +8,9 @@ jobs:
build:
runs-on: ubuntu-latest
# This environment contains secrets needed for publishing
environment: release
strategy:
matrix:
node-version: [12.x]
@ -19,17 +19,31 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.repo_pat }}
# Don't save creds in the git config (so it's easier to override later)
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn build
- run: yarn test
- run: |
- name: Publish package
run: |
git config user.email "kchau@microsoft.com"
git config user.name "Ken Chau"
- run: yarn release -y -n $NPM_AUTHTOKEN
# Get the existing remote URL without creds, and use a trap (like try/finally)
# to restore it after this step finishes
trap "git remote set-url origin '$(git remote get-url origin)'" EXIT
# Add a token to the remote URL for auth during release
git remote set-url origin "https://$REPO_PAT@github.com/$GITHUB_REPOSITORY"
yarn release -y -n "$NPM_AUTHTOKEN"
env:
NPM_AUTHTOKEN: ${{ secrets.npm_authtoken }}
NPM_AUTHTOKEN: ${{ secrets.NPM_AUTHTOKEN }}
REPO_PAT: ${{ secrets.REPO_PAT }}

Просмотреть файл

@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Update build setup",
"packageName": "p-profiler",
"email": "ecraig12345@gmail.com",
"dependentChangeType": "none"
}

Просмотреть файл

@ -7,8 +7,7 @@
"scripts": {
"build": "tsc",
"start": "tsc -w --preserveWatchOutput",
"test": "jest --passWithNoTests",
"release": "yarn build && yarn test && beachball publish",
"release": "beachball publish",
"checkchange": "beachball check",
"change": "beachball change"
},
@ -16,11 +15,15 @@
"url": "https://github.com/microsoft/p-profiler"
},
"devDependencies": {
"@types/jest": "^25.2.1",
"@types/node": "^14.0.5",
"beachball": "^1.31.0",
"jest": "^25.5.3",
"ts-jest": "^25.4.0",
"beachball": "^2.0.0",
"typescript": "^3.8.3"
},
"beachball": {
"ignorePatterns": [
".*ignore",
".github/**",
"yarn.lock"
]
}
}

3644
yarn.lock

Разница между файлами не показана из-за своего большого размера Загрузить разницу