Skip to content

Commit 01eb59d

Browse files
committed
ci(release): Add npm install and package name to release workflow
1 parent bcd58c8 commit 01eb59d

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,24 @@ name: Release
55

66
on:
77
push:
8-
# Trigger on push to the primary branch (usually 'main' or 'master')
98
branches:
109
- main
11-
workflow_dispatch:
1210

1311
jobs:
1412
release-please:
1513
runs-on: ubuntu-latest
1614
permissions:
17-
# Required for creating releases and pushing changes to the repository
1815
contents: write
19-
# Required for managing pull requests (Crucial for creating the release PR)
2016
pull-requests: write
2117

2218
steps:
23-
- name: Checkout repository
24-
uses: actions/checkout@v4
25-
26-
# 1. Run the release-please action
27-
# Using the recommended 'googleapis/release-please-action'
28-
- name: Run Release Please
29-
uses: googleapis/release-please-action@v4
19+
- uses: actions/checkout@v4
20+
- name: Install dependencies
21+
run: npm install
22+
- uses: googleapis/release-please-action@v4
3023
id: release
3124
with:
3225
release-type: node
26+
package-name: repo-description
3327
target-branch: main
34-
# Passing the GITHUB_TOKEN via the 'token' input for maximum reliability
35-
# in creating Pull Requests (resolves the permission error).
3628
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)