feat(mcq): add switch for answer in back (#53) #43
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 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Use Node.js 22 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm test | |
- name: Create Release Pull Request or Tag | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm changeset tag | |
title: 'chore: release' | |
commit: 'chore: release' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build templates | |
if: steps.changesets.outputs.published == 'true' | |
run: pnpm run build | |
- name: Install uv | |
if: steps.changesets.outputs.published == 'true' | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: '0.4.27' | |
- name: Gen APKG | |
if: steps.changesets.outputs.published == 'true' | |
run: uv run --frozen release.py | |
- name: Release | |
if: steps.changesets.outputs.published == 'true' | |
uses: ncipollo/[email protected] | |
with: | |
artifacts: 'release/*.apkg' | |
artifactErrorsFailBuild: true | |
tag: ${{format('v{0}', fromJSON(steps.changesets.outputs.publishedPackages)[0].version)}} | |
allowUpdates: true | |
omitBodyDuringUpdate: true |