Publish NEWMAN reporter #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish NEWMAN reporter | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'NPM version to publish' | |
required: true | |
default: 'patch' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Setup .npmrc file to publish to npm | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm ci | |
working-directory: ./packages/newman-reporter-testomatio | |
- run: npm version ${{ github.event.inputs.version }} --no-git-tag-version | |
working-directory: ./packages/newman-reporter-testomatio | |
- run: npm publish | |
working-directory: ./packages/newman-reporter-testomatio | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |