Skip to content

Merge pull request #6 from RokiiApp/release-please--branches--main #19

Merge pull request #6 from RokiiApp/release-please--branches--main

Merge pull request #6 from RokiiApp/release-please--branches--main #19

on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
is_release: ${{ steps.release.outputs.releases_created }}
steps:
- uses: google-github-actions/release-please-action@v4
id: release
publish-npm-packages:
runs-on: ubuntu-latest
needs: release-please
# Only exec the publish action if a new release was created
if: needs.release-please.outputs.is_release == 'true'
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
- name: Install deps
run: pnpm i
- name: Build packages & type check
run: pnpm prepare-publish
- name: Publish packages to npm
run: pnpm publish -r
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}