Skip to content

chore: updated components (#292) #295

chore: updated components (#292)

chore: updated components (#292) #295

Workflow file for this run

on:
push:
branches:
- main
name: release-please
jobs:
release-please:
environment: release
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
id: app-token
with:
client-id: ${{ secrets.COMMIT_BOT_CLIENT_ID }}
private-key: ${{ secrets.COMMIT_BOT_PRIVATE_KEY }}
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5
id: release
with:
token: ${{ steps.app-token.outputs.token }}
release-type: node
include-component-in-tag: true
# The logic below handles the npm publication:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: 24
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.release_created }}
- uses: bahmutov/npm-install@v1
if: ${{ steps.release.outputs.release_created }}
with:
useLockFile: false
- run: npm run prepack
if: ${{ steps.release.outputs.release_created }}
- run: npm publish --provenance --access public
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ""