Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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
6 changes: 3 additions & 3 deletions .github/workflows/audit-pending-releases.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- 'release-please**'
- "release-please**"

env:
CORE_PACKAGE: core
Expand Down Expand Up @@ -29,6 +29,6 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: "https://registry.npmjs.org"
cache: 'npm'
cache: "npm"
6 changes: 3 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: 20
cache: 'npm'
registry-url: "https://registry.npmjs.org"
node-version: 22
cache: "npm"

- name: Install
run: npm ci
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache: "npm"

- name: Install
run: npm ci
Expand All @@ -50,8 +50,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
node-version: 22
cache: "npm"

- name: Install
run: npm ci
Expand All @@ -72,8 +72,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
node-version: 22
cache: "npm"

- name: Install
run: npm ci
Expand Down
35 changes: 20 additions & 15 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ on:
push:
branches:
- main

name: Run Release Please

jobs:
release-please:
runs-on: ubuntu-latest
Expand All @@ -27,28 +29,30 @@ jobs:
if: ${{ fromJSON(needs.release-please.outputs.paths_released)[0] != null }}
# Continues with the release process even if SBOM generation fails.
continue-on-error: true
permissions:
id-token: write
contents: read
strategy:
matrix:
release: ${{ fromJSON(needs.release-please.outputs.paths_released) }}
env:
TAG: ${{ fromJSON(needs.release-please.outputs.all)[format('{0}--tag_name', matrix.release)] }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Update npm to >=11.5.1 (for OIDC support)
run: npm install -g npm@^11.5.1
- name: Install dependencies
run: npm ci
- name: Generate SBOM
run: |
npm install -g npm@^10.2.0
npm ci
npm sbom --sbom-format=cyclonedx --omit=dev --omit=peer --workspace=${{matrix.release}} > bom.json
- name: Attach SBOM to artifact
env:
GITHUB_TOKEN: ${{secrets.RELEASE_PLEASE_ACTION_TOKEN}}
run:
gh release upload $TAG bom.json
run: npm sbom --sbom-format=cyclonedx --omit=dev --omit=peer --workspace=${{ matrix.release }} > sbom.json
- name: Attest SBOM
uses: actions/attest-sbom@v3
with:
subject-path: ${{ matrix.release }}/package.json
sbom-path: ./sbom.json

npm-release:
needs: release-please
Expand All @@ -65,9 +69,11 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: "https://registry.npmjs.org"
cache: 'npm'
cache: "npm"
- name: Update npm (for OIDC auth)
run: npm install -g npm@^11.5.1
- name: Build Packages
run: |
npm ci
Expand All @@ -77,7 +83,6 @@ jobs:
# Our scripts only publish versions that do not already exist.
- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# https://docs.npmjs.com/generating-provenance-statements
NPM_CONFIG_PROVENANCE: true
run: npm run publish-all
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ typedoc

# IDE
.idea
.cursor/

# license files copied from root
packages/**/LICENSE
Loading