Skip to content

Commit 3c0b608

Browse files
authored
Switch to trusted publishing (#1090)
1 parent b3799d5 commit 3c0b608

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.changeset/strong-owls-tan.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"dom-accessibility-api": patch
3+
---
4+
5+
Switch to trusted publishing

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
jobs:
99
release:
1010
name: Prepare or publish release
11+
environment: production
12+
permissions:
13+
id-token: write # Required for OIDC
14+
# Changesets creates a commit and PR for the release
15+
contents: write
16+
pull-requests: write
1117
runs-on: ubuntu-latest
1218
steps:
1319
- name: Checkout Repo
@@ -16,11 +22,10 @@ jobs:
1622
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1723
fetch-depth: 0
1824

19-
# synced with #node-version
20-
- name: Setup Node.js 16.x
25+
- name: Setup Node.js
2126
uses: actions/setup-node@v3
2227
with:
23-
node-version: 16.x
28+
node-version: 24.x
2429

2530
- name: Install Dependencies
2631
run: yarn
@@ -32,4 +37,3 @@ jobs:
3237
publish: yarn release
3338
env:
3439
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}

0 commit comments

Comments
 (0)