-
Notifications
You must be signed in to change notification settings - Fork 120
34 lines (29 loc) · 953 Bytes
/
release.yml
File metadata and controls
34 lines (29 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Manual fallback — automated publishing happens in ci.yml (publish_npmjs job).
# Use this workflow only to re-promote a specific SHA if the automated publish fails.
name: Release
on:
workflow_dispatch:
inputs:
sha:
description: 'Commit SHA to promote (must have passed the CI build job)'
required: true
type: string
permissions:
packages: read
contents: read
jobs:
npm:
name: Promote npm packages to npmjs.org
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
with:
ref: ${{ inputs.sha }}
sparse-checkout: scripts/promote-to-npmjs.sh
- name: Promote to npmjs.org
run: bash scripts/promote-to-npmjs.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_REPO_OWNER: ${{ github.repository_owner }}
GITHUB_REPO_NAME: ${{ github.event.repository.name }}