Skip to content

Merge pull request #113 from mynaparrot/renovate/typedoc-0.x #21

Merge pull request #113 from mynaparrot/renovate/typedoc-0.x

Merge pull request #113 from mynaparrot/renovate/typedoc-0.x #21

Workflow file for this run

name: Build and release library
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
- name: Checkout
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4
- name: setup node
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-node@v4
with:
node-version: '20.x'
- uses: pnpm/action-setup@v4
name: Install pnpm
if: ${{ steps.release.outputs.release_created }}
with:
version: 9
- name: Build and publish
if: ${{ steps.release.outputs.release_created }}
run: |
pnpm install
pnpm run build
npm config set '//registry.npmjs.org/:_authToken' $NPM_TOKEN
npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}