wrong output var #6
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: Tag release changeset | |
on: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
prepare: | |
name: Setup dependencies | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
cache-dependency-path: package-lock.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Check for changeset | |
run: npx changeset status | |
- name: Check for changeset | |
run: npx changeset status --output changesets.json | |
- name: Set release output | |
id: set_release | |
run: | |
echo "hasRelease=$(jq -r '.releases | length > 0' changesets.json)" >> | |
"$GITHUB_OUTPUT" | |
- name: Rotate logs and release | |
if: ${{ steps.set_release.outputs.hasRelease == 'true' }} | |
run: | | |
npx changeset version | |
npx changeset publish | |
git-push --follow-tags |