run api portal tests for relevant changes #517
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: Release | |
on: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
env: | |
DIRECTORY: ./generator/konfig-dash | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
defaults: | |
run: | |
working-directory: ${{ env.DIRECTORY }} | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Install Dependencies | |
run: yarn | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: yarn changeset:version | |
cwd: ${{ env.DIRECTORY }} | |
title: Version Packages & Generate Artifacts | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish if changesets do not exist | |
if: steps.changesets.outputs.hasChangesets == 'false' | |
run: yarn changeset:publish |