Files
pnpm/.github/workflows/update-latest.yml
MCMXC becacb99a9 build: update used versions in github workflow actions (#5168)
- update all actions/* to v3
- update github/codeql-action/* to v2
2022-08-06 21:11:15 +03:00

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 }}