Skip to content

ci: update env variables #51

ci: update env variables

ci: update env variables #51

# Setup release drafter to automatically generate drafts for release candidates
# with the right labels and version
# Release drafter version: v5.24.0 - https://github.com/release-drafter/release-drafter/commits/v5.24.0
# Pinned action to the top commit - https://github.com/release-drafter/release-drafter/commit/65c5fb495d1e69aa8c08a3317bc44ff8aabe9772
name: ✍️ Release Drafter
on:
push:
branches:
- main
paths:
- '.github/workflows/draft-next-release.yml'
- 'testing/**'
- 'theme/**'
workflow_dispatch: {}
jobs:
draft_release:
name: 'Draft Theme release'
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 9.6.0+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e
run_install: false
- uses: release-drafter/release-drafter@65c5fb495d1e69aa8c08a3317bc44ff8aabe9772
id: releaseDrafter
with:
config-name: configs/draft-release.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Run version bumping on the theme package
- run: pnpm version ${{ steps.releaseDrafter.outputs.resolved_version }} --git-tag-version=false --allow-same-version
working-directory: ./theme
- uses: EndBug/add-and-commit@v9
with:
message: "chore: bump version ${{ steps.releaseDrafter.outputs.resolved_version }}"