Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
# This environment contains secrets needed for publishing
environment: release

permissions:
# required for npm trusted publishing
id-token: write

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
Expand All @@ -33,6 +37,14 @@ jobs:

- run: yarn lage build test

- name: Use Node 20 for publish
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: 20

- name: Install latest npm for publish
run: npm i -g npm

- name: Set git user
run: |
git config user.email "kchau@microsoft.com"
Expand All @@ -47,9 +59,8 @@ jobs:
# Add a token to the remote URL for auth during release
git remote set-url origin "https://$REPO_PAT@github.com/$GITHUB_REPOSITORY"

yarn release -y -n "$NPM_AUTHTOKEN"
yarn release
env:
NPM_AUTHTOKEN: ${{ secrets.NPM_AUTHTOKEN }}
REPO_PAT: ${{ secrets.REPO_PAT }}

# The docs have a separate installation using Node 22 due to needing newer dependencies
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lage": "cross-env NODE_OPTIONS=\"--experimental-abortcontroller\" lage",
"format": "prettier --write .",
"format:check": "prettier --check .",
"release": "beachball publish",
"release": "beachball publish -y",
"start": "yarn lage start",
"test": "yarn lage test",
"prelint": "syncpack list-mismatches",
Expand Down
Loading