Skip to content

wrong output var

wrong output var #6

Workflow file for this run

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