Skip to content

ci: use new release-please action #82

ci: use new release-please action

ci: use new release-please action #82

name: release-please
on:
push:
branches:
- master
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- name: Use Node 22
uses: actions/setup-node@v4
with:
node-version: 22.x
if: ${{ steps.release.outputs.release_created }}
- name: Install dependencies
run: yarn install --immutable
if: ${{ steps.release.outputs.release_created }}
- name: Build react-responsive-modal
run: yarn workspace react-responsive-modal build
if: ${{ steps.release.outputs.release_created }}
- name: Publish react-responsive-modal npm package
run: yarn workspace react-responsive-modal npm publish
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}