Skip to content

update release

update release #8

Workflow file for this run

name: "Publish package and docs"
on: [push]
env:
AURI_GITHUB_TOKEN: ${{secrets.AURI_GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
outputs:
- auri_publish_result: ${{ steps.auri-publish.outputs.test }}

Check failure on line 13 in .github/workflows/publish.yaml

View workflow run for this annotation

GitHub Actions / Publish package and docs

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yaml (Line: 13, Col: 7): A sequence was not expected
steps:
- name: Setup actions
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Auri
run: npm i -g auri
- name: Prepare release
run: pnpm auri prepare ${{ github.ref_name }}
- name: Publish package
run: pnpm auri publish
- name: Check if ".changesets" directory has files
id: check-changesets
run: |
if [ -z "$(ls -A .changesets)" ]; then
echo "changesets=0" >> "$GITHUB_OUTPUT"
else
echo "changesets=1" >> "$GITHUB_OUTPUT"
fi
- name: Publish docs
if: steps.check-changesets.outputs.changesets == 0
run: echo "Publish!"