Skip to content

chore: release main (#246) #123

chore: release main (#246)

chore: release main (#246) #123

Workflow file for this run

name: Release
on:
push:
branches: [main]
permissions: {}
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
permissions:
id-token: write
steps:
- name: Fetch ephemeral Github token
id: fetch-token
uses: elastic/ci-gh-actions/fetch-github-token@622f9dc1eecdd4af2e81dfb38028aacb1dae03e8 # v1.5.0
with:
vault-instance: "ci-prod"
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5
id: release
with:
config-file: .github/release-please-config.json
manifest-file: .github/.release-please-manifest.json
token: ${{ steps.fetch-token.outputs.token }}
publish:
needs: release-please
if: ${{ needs.release-please.outputs.release_created == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
persist-credentials: false
node-version: 24
registry-url: https://registry.npmjs.org
- name: Install
run: npm ci
- name: Run tests
run: npm test
- name: Publish
run: npm publish --provenance --access public