Merge pull request #22 from koterpillar/dont-use-shell-to-run #22
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 (${{ github.ref }}) | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
run_install: true | |
- name: Build | |
run: pnpm build | |
- name: Create Release Pull Request or Publish to NPM | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm changeset publish | |
version: pnpm changeset version | |
title: Release Packages | |
commit: bump versions | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |