Skip to content

ci: add package to release-please #54

ci: add package to release-please

ci: add package to release-please #54

on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }} # to trigger other workflows are PR updates
config-file: .github/workflows/release-please-config.json
manifest-file: .github/workflows/release-please-manifest.json
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
if: ${{ steps.release.outputs.release_created }}
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm run build
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}