The pnpm-fetch layer added in #6296 broke the release build: pnpm 11.10.0 applies patchedDependencies during `pnpm fetch`, before node_modules exists, crashing with ENOENT. Install directly from the full context with the store cache mounted instead. Also audit and consolidate the workflows: - standardize action majors (cache@v6, upload-artifact@v7, github-script@v9) - provision Node from mise.toml via jdx/mise-action; drop .nvmrc - rename deployment-docker-image.yml -> deployment-release.yml, reuse the shared setup action, and scope GITHUB_TOKEN permissions per job - extract the duplicated beta/weekly release logic into a reusable deployment-release-pr.yml called by thin triggers
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: "[Deployment] Automatic Weekly Release"
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 19 * * 5" # https://crontab.guru/#0_19_*_*_5
|
|
timezone: Europe/Zurich
|
|
workflow_dispatch:
|
|
inputs:
|
|
send-notifications:
|
|
type: boolean
|
|
required: false
|
|
default: true
|
|
description: Send notifications
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
release:
|
|
# Permissions must be set on the calling job: a reusable workflow receives
|
|
# the default GITHUB_TOKEN permissions unless the caller job grants them here.
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
uses: ./.github/workflows/deployment-release-pr.yml
|
|
secrets: inherit
|
|
with:
|
|
release-label: "Automatic release"
|
|
title-prefix: "automatic "
|
|
body-prefix: "**This is an automatic release**.<br/>Manual action may be required for major bumps.<br/>"
|
|
semver-branch: dev
|
|
head: dev
|
|
base: main
|
|
# Scheduled runs have no inputs, so notifications stay off unless manually dispatched.
|
|
send-notifications: ${{ github.event.inputs.send-notifications == 'true' }}
|