Skip to content

Commit 7700456

Browse files
authored
Update release workflow for OIDC (#3500)
1 parent 482a995 commit 7700456

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.changeset/empty-impalas-switch.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@astrojs/starlight-docsearch': patch
3+
'@astrojs/starlight-markdoc': patch
4+
'@astrojs/starlight': patch
5+
'@astrojs/starlight-tailwind': patch
6+
---
7+
8+
This is the first release published with OIDC trusted publishing.

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Release
2+
permissions: {}
23

34
on:
45
push:
@@ -12,21 +13,23 @@ jobs:
1213
runs-on: ubuntu-latest
1314
permissions:
1415
contents: write
16+
pull-requests: write
1517
id-token: write
1618
steps:
1719
- name: Checkout Repo
1820
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1921
with:
2022
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
2123
fetch-depth: 0
24+
persist-credentials: false
2225

2326
- name: Setup PNPM
2427
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
2528

2629
- name: Setup Node
2730
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2831
with:
29-
node-version: 18.20.8
32+
node-version: 24.10.0
3033
cache: 'pnpm'
3134

3235
- name: Install Dependencies
@@ -41,4 +44,4 @@ jobs:
4144
title: '[ci] release'
4245
env:
4346
GITHUB_TOKEN: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
44-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
NPM_TOKEN: "" # See https://github.com/changesets/changesets/issues/1152#issuecomment-3190884868

0 commit comments

Comments
 (0)