Files
pnpm/.github/workflows/update-latest.yml
dependabot[bot] f97ff6bf16 chore(deps): bump the github-actions group with 6 updates (#8008)
Bumps the github-actions group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `3` | `4` |
| [actions/setup-node](https://github.com/actions/setup-node) | `3` | `4` |
| [github/codeql-action](https://github.com/github/codeql-action) | `2` | `3` |
| [softprops/action-gh-release](https://github.com/softprops/action-gh-release) | `1` | `2` |
| [bluwy/release-for-reddit-action](https://github.com/bluwy/release-for-reddit-action) | `1` | `2` |
| [cbrgm/mastodon-github-action](https://github.com/cbrgm/mastodon-github-action) | `1` | `2` |


Updates `actions/checkout` from 3 to 4
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

Updates `actions/setup-node` from 3 to 4
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

Updates `github/codeql-action` from 2 to 3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

Updates `softprops/action-gh-release` from 1 to 2
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2)

Updates `bluwy/release-for-reddit-action` from 1 to 2
- [Release notes](https://github.com/bluwy/release-for-reddit-action/releases)
- [Changelog](https://github.com/bluwy/release-for-reddit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bluwy/release-for-reddit-action/compare/v1...v2)

Updates `cbrgm/mastodon-github-action` from 1 to 2
- [Release notes](https://github.com/cbrgm/mastodon-github-action/releases)
- [Commits](https://github.com/cbrgm/mastodon-github-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: bluwy/release-for-reddit-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: cbrgm/mastodon-github-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-24 15:40:29 +02:00

76 lines
2.4 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@v4
- name: Update tag
env:
"npm_config_//registry.npmjs.org/:_authToken": ${{ secrets.NPM_TOKEN }}
run: |
npm dist-tag add pnpm@${{ github.event.inputs.version }} latest-9
npm dist-tag add pnpm@${{ github.event.inputs.version }} ${{ github.event.inputs.tag }}
npm dist-tag add @pnpm/exe@${{ github.event.inputs.version }} latest-9
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: vedantmgoyal2009/winget-releaser@v2
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@v2
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@v2
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