Skip to content
Open
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
7 changes: 6 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: Install & setup
description: Install's node, pnpm, restores cache, and then installs dependencies

inputs:
node-version:
description: the version of Node.js to install
default: 18.x

runs:
using: 'composite'
steps:
# Install nodejs. https://github.com/actions/setup-node
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: ${{ inputs.node-version }}

# Install pnpm. https://github.com/pnpm/action-setup
- uses: pnpm/action-setup@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/lint
- uses: ./.github/actions/setup
- uses: ./.github/actions/lint
- uses: ./.github/actions/test
- uses: ./.github/actions/local/build
- uses: ./.github/actions/local/e2e
5 changes: 0 additions & 5 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
# https://github.com/actions/checkout
uses: actions/checkout@v4

# Setup .npmrc file to publish to npm
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Node is installed by the setup action below

- uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"

- uses: ./.github/actions/setup

- name: Install dependencies
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
id-token: write
contents: read

jobs:
release:
name: Release
Expand All @@ -17,6 +21,12 @@ jobs:
uses: actions/checkout@v4

- uses: ./.github/actions/setup
with:
# Ensure npm 11.5.1 or later is installed
# See https://docs.npmjs.com/trusted-publishers
node-version: 24
registry-url: "https://registry.npmjs.org"

- uses: ./.github/actions/lint

- name: Create Release Pull Request or Publish to npm
Expand All @@ -29,7 +39,6 @@ jobs:
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: View outputs
run: echo ${{join(steps.changesets.outputs.*, ' ')}}
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/v2-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ jobs:
# https://github.com/actions/checkout
uses: actions/checkout@v4

# Setup .npmrc file to publish to npm
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Node is installed by the setup action below

- uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"

- uses: ./.github/actions/setup

- name: Publish Pre-release to npm
Expand Down