diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index e2dc0ee..1b0e85d 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -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}} +