n8n/.github/workflows/release-set-stable-npm-packages-to-latest.yml
Matsu 50dab4663a
ci: Use npm registry HTTP API for dist-tag promotion (no-changelog) (#28898)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-23 08:29:51 +03:00

33 lines
839 B
YAML

name: 'Release: Set stable npm packages to latest'
on:
workflow_call:
workflow_dispatch:
permissions:
contents: write
jobs:
promote-github-releases:
name: Promote current stable releases as latest
runs-on: ubuntu-slim
environment: release
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: refs/tags/stable
fetch-depth: 1
- name: Setup NodeJS
uses: ./.github/actions/setup-nodejs
with:
build-command: ''
install-command: pnpm install --frozen-lockfile --dir ./.github/scripts --ignore-workspace
- name: Set npm packages to latest
run: node ./.github/scripts/set-latest-for-monorepo-packages.mjs
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}