Skip to content

ci: allow manual runs (#31) #28

ci: allow manual runs (#31)

ci: allow manual runs (#31) #28

name: release-please
on:
workflow_dispatch:
push:
branches: [main]
permissions:
contents: write
id-token: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
outputs:
release_created: ${{ steps.release.outputs.release_created }}
release:
runs-on: ubuntu-latest
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "npm"
registry-url: "https://registry.npmjs.org"
- name: Build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm ci
npm run build
npm publish --provenance --access public