Skip to content

dummy

dummy #505

Workflow file for this run

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