Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
67 lines (57 loc) · 2.38 KB

File metadata and controls

67 lines (57 loc) · 2.38 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Security Notes
# Only selected Actions are allowed within this repository. Please refer to (https://github.com/nodejs/nodejs.org/settings/actions)
# for the full list of available actions. If you want to add a new one, please reach out a maintainer with Admin permissions.
# REVIEWERS, please always double-check security practices before merging a PR that contains Workflow changes!!
# AUTHORS, please only use actions with explicit SHA references, and avoid using `@master` or `@main` references or `@version` tags.
name: Create Release Blog Post
on:
workflow_dispatch:
inputs:
version:
description: The version to generate a blog post for.
type: string
required: true
defaults:
run:
# This ensures that the working directory is the root of the repository
working-directory: ./
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ inputs.version }}
cancel-in-progress: false
jobs:
create-post:
name: Create Release Blog Post
runs-on: ubuntu-latest
permissions:
# Required to push the release branch
contents: write
# Required to create the pull request
pull-requests: write
steps:
- uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
with:
pnpm: true
use-version-file: true
- run: node --run scripts:release-post -- "$VERSION"
working-directory: apps/site
id: release-post
env:
VERSION: ${{ inputs.version }}
- name: Open pull request
uses: gr2m/create-or-update-pull-request-action@b65137ca591da0b9f43bad7b24df13050ea45d1b # v1.10.1
# Creates a PR or update the Action's existing PR, or
# no-op if the base branch is already up-to-date.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
update-pull-request-title-and-body: true
branch: release-${{ inputs.version }}
body: |
Creates a new blog post for ${{ inputs.version }}
Check this workflow's logs at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}.
commit-message: 'feat(blog): create post for ${{ inputs.version }}'
labels: fast-track
title: 'feat(blog): create post for ${{ inputs.version }}'
assignees: ${{ steps.release-post.outputs.author }}
draft: true
Morty Proxy This is a proxified and sanitized view of the page, visit original site.