diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e71983a..aff6ab6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -42,12 +42,14 @@ jobs: env: CC_TEST_REPORTER_ID: $(CC_TEST_REPORTER_ID) CODECOV_TOKEN: $(CODECOV_TOKEN) - afterAll: - - script: | - npm run build-dist - node tools/publish-dev - displayName: 'publish pegjs@dev' - env: - NPM_TOKEN: $(NPM_TOKEN) publish_test_results_to_pipelines: True publish_code_coverage_to_pipelines: True + +- template: node.yml@apt + parameters: + name: 'Publish pegjs@dev' + actions: + - script: npm run build-dist + - script: node tools/publish-dev + env: + NPM_TOKEN: $(NPM_TOKEN)