Skip to content

docs: fix platform-specific example (#726) #1530

docs: fix platform-specific example (#726)

docs: fix platform-specific example (#726) #1530

Workflow file for this run

name: ci
on:
push:
branches:
- master
- next
pull_request:
branches:
- master
- next
permissions:
contents: read # for checkout
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 20
- 22
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
release:
runs-on: ubuntu-latest
needs: test
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- run: npm ci
- run: npm audit signatures
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}