Merge pull request #146 from kinday/typescript-bundler-resolution #113
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: Create changeset PR or Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
pr-or-release: | |
name: Changeset or Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup node / npm env and install deps | |
uses: ./.github/workflows/reusable/env-setup | |
- name: Create Release Pull Request or Publish to npm if no pending changes | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: npm run release | |
publish: npm run publish | |
title: Upcoming package versions and changelogs | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |