chore(release): 2.4.0 #21
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 release on tag push" | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
publish_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code for CHANGELOG.md | |
uses: actions/checkout@v2 | |
- name: Get package info | |
id: package | |
uses: codex-team/action-nodejs-package-info@v1 | |
- name: Generate postman collection for service | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Set File name | |
uses: myci-actions/export-env-var@1 | |
with: | |
name: P_COLLECTION_FILE_NAME | |
value: ${{ steps.package.outputs.name }}-v${{ steps.package.outputs.version }}-postman-collection.json | |
- run: 'npx openapi-to-postmanv2 -s openapi3.yaml -o ${{ env.P_COLLECTION_FILE_NAME }}' | |
- name: Publish Release to Github | |
uses: softprops/action-gh-release@v1 | |
with: | |
body_path: CHANGELOG.md | |
files: ${{ env.P_COLLECTION_FILE_NAME }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |