Skip to content

docs: correct and complete the action config reference #55

docs: correct and complete the action config reference

docs: correct and complete the action config reference #55

Workflow file for this run

name: Release
on:
push:
branches: ['main']
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- name: Create release PR or GitHub release
id: release
uses: googleapis/release-please-action@v4
with:
release-type: node
publish:
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Typecheck
run: npm run typecheck
- name: Build package
run: npm run build
- name: Run tests
run: npm test
- name: Ensure npm supports trusted publishing
run: npm install -g npm@latest
- name: Publish to npm
run: npm publish --provenance --access public