Files
pnpm/.github/workflows/update-latest.yml
dependabot[bot] 28daa2cb2e build(deps): bump the github-actions group across 1 directory with 4 updates (#10833)
Bumps the github-actions group with 4 updates in the / directory: [actions/upload-artifact](https://github.com/actions/upload-artifact), [actions/download-artifact](https://github.com/actions/download-artifact), [github/codeql-action](https://github.com/github/codeql-action) and [cbrgm/mastodon-github-action](https://github.com/cbrgm/mastodon-github-action).


Updates `actions/upload-artifact` from 6.0.0 to 7.0.0
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](b7c566a772...bbbca2ddaa)

Updates `actions/download-artifact` from 7.0.0 to 8.0.0
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](37930b1c2a...70fc10c6e5)

Updates `github/codeql-action` from 4.31.11 to 4.32.5
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](19b2f06db2...c793b717bc)

Updates `cbrgm/mastodon-github-action` from 2.1.23 to 2.1.26
- [Release notes](https://github.com/cbrgm/mastodon-github-action/releases)
- [Commits](3ebdc72dcd...fc8b40e2ec)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: github/codeql-action
  dependency-version: 4.32.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: cbrgm/mastodon-github-action
  dependency-version: 2.1.26
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-02 23:53:39 +01:00

76 lines
2.6 KiB
YAML

name: Tag
on:
workflow_dispatch:
inputs:
version:
description: Version
required: true
tag:
description: Tag
default: latest
required: true
permissions: {}
jobs:
tag-in-registry:
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@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
- name: Update tag
env:
"npm_config_//registry.npmjs.org/:_authToken": ${{ secrets.NPM_TOKEN }}
run: |
npm dist-tag add pnpm@${{ github.event.inputs.version }} latest-10
npm dist-tag add pnpm@${{ github.event.inputs.version }} ${{ github.event.inputs.tag }}
npm dist-tag add @pnpm/exe@${{ github.event.inputs.version }} latest-10
npm dist-tag add @pnpm/exe@${{ github.event.inputs.version }} ${{ github.event.inputs.tag }}
publish-to-winget:
runs-on: ubuntu-latest
environment: release
needs: tag-in-registry
steps:
- uses: vedantmgoyal9/winget-releaser@19e706d4c9121098010096f9c495a70a7518b30f # main
with:
identifier: pnpm.pnpm
version: ${{ github.event.inputs.version }}
release-tag: v${{ github.event.inputs.version }}
token: ${{ secrets.WINGET_TOKEN }}
post-to-reddit:
runs-on: ubuntu-latest
environment: release
needs: tag-in-registry
steps:
- uses: bluwy/release-for-reddit-action@b4ee0e0d64da893e0428912aac5cda675082bd85 # v2.0.0
with:
username: ${{ secrets.REDDIT_USERNAME }}
password: ${{ secrets.REDDIT_PASSWORD }}
app-id: ${{ secrets.REDDIT_APP_ID }}
app-secret: ${{ secrets.REDDIT_APP_SECRET }}
subreddit: pnpm
title: pnpm@${{ github.event.inputs.version }} is out!
url: https://github.com/pnpm/pnpm/releases/tag/v${{ github.event.inputs.version }}
post-to-mastodon:
runs-on: ubuntu-latest
environment: release
needs: tag-in-registry
steps:
- name: Send toot to Mastodon
id: mastodon
uses: cbrgm/mastodon-github-action@fc8b40e2ec9e8208654b0bd8695e03ecc3364d7d # v2.1.26
with:
message: |
pnpm@${{ github.event.inputs.version }} is out!
https://github.com/pnpm/pnpm/releases/tag/v${{ github.event.inputs.version }}
visibility: "public"
env:
MASTODON_URL: "https://fosstodon.org/"
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }} # access token