mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-13 02:55:56 -04:00
29 lines
782 B
YAML
29 lines
782 B
YAML
name: Tag
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: Version
|
|
required: true
|
|
tag:
|
|
description: Tag
|
|
default: latest
|
|
required: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Tagging ${{ github.event.inputs.version }} as ${{ github.event.inputs.tag }}
|
|
environment: release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v3
|
|
- name: Update tag
|
|
env:
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
run: |
|
|
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
|
|
npm dist-tag add pnpm@${{ github.event.inputs.version }} ${{ github.event.inputs.tag }}
|
|
npm dist-tag add @pnpm/exe@${{ github.event.inputs.version }} ${{ github.event.inputs.tag }}
|