Publish yml fix
This commit is contained in:
Родитель
2a8dbec29a
Коммит
cc0e37a145
|
@ -13,24 +13,54 @@ jobs:
|
|||
with:
|
||||
node-version: 8
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- working-directory: ./azure-kusto-data
|
||||
|
||||
- name: Test azure-kusto-data
|
||||
working-directory: ./azure-kusto-data
|
||||
run: |
|
||||
npm i
|
||||
npm test
|
||||
npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
- working-directory: ./azure-kusto-ingest
|
||||
|
||||
- name: Test azure-kusto-ingest
|
||||
working-directory: ./azure-kusto-ingest
|
||||
run: |
|
||||
npm i
|
||||
npm i
|
||||
npm test
|
||||
npm run allTest
|
||||
|
||||
- name: Bump version azure-kusto-data
|
||||
working-directory: ./azure-kusto-data
|
||||
run: |
|
||||
npm version patch
|
||||
|
||||
- name: Bump version azure-kusto-ingest
|
||||
working-directory: ./azure-kusto-ingest
|
||||
run: |
|
||||
npm version patch
|
||||
|
||||
- name: Setup GIT
|
||||
run: |
|
||||
git switch -c master
|
||||
git config user.email "amshalev@microsoft.com"
|
||||
git config user.name "$GITHUB_ACTOR"
|
||||
|
||||
- name: Push version bump
|
||||
working-directory: ./azure-kusto-data
|
||||
run: |
|
||||
git commit -m 'Auto bump version'
|
||||
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
- name: Publish new version azure-kusto-data
|
||||
working-directory: ./azure-kusto-data
|
||||
run: |
|
||||
npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
TEST_DATABASE : "e2e"
|
||||
APP_ID: "b699d721-4f6f-4320-bc9a-88d578dfe68f"
|
||||
APP_KEY: ${{secrets.APP_KEY}}
|
||||
TENANT_ID: "72f988bf-86f1-41af-91ab-2d7cd011db47"
|
||||
ENGINE_CONNECTION_STRING: "https://sdkse2etest.eastus.kusto.windows.net"
|
||||
DM_CONNECTION_STRING: "https://ingest-sdkse2etest.eastus.kusto.windows.net"
|
||||
|
||||
- name: Publish new version azure-kusto-ingest
|
||||
working-directory: ./azure-kusto-ingest
|
||||
run: |
|
||||
npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче