Merge pull request #1344 from nubolab-ffwd/renovate/typescript-eslint… #740
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
- next | |
name: Release | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: google-github-actions/release-please-action@v4 | |
id: release | |
with: | |
token: ${{ secrets.RELEASE_PLEASE_GITHUB_TOKEN }} | |
config-file: release-please-config.json | |
manifest-file: .release-please-manifest.json | |
target-branch: ${{ github.ref_name }} | |
# The logic below handles the npm publication: | |
- uses: actions/[email protected] | |
# these if statements ensure that a publication only occurs when | |
# a new release is created: | |
if: ${{ steps.release.outputs.release_created }} | |
# Setup .npmrc file to publish to npm | |
- uses: pnpm/[email protected] | |
if: ${{ steps.release.outputs.release_created }} | |
- uses: actions/[email protected] | |
with: | |
node-version: 20.x | |
cache: 'pnpm' | |
registry-url: 'https://registry.npmjs.org' | |
if: ${{ steps.release.outputs.release_created }} | |
- run: pnpm install --frozen-lockfile --strict-peer-dependencies | |
if: ${{ steps.release.outputs.release_created }} | |
- run: pnpm publish --no-git-checks --tag $NPM_TAG | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NPM_TAG: ${{ github.ref == 'refs/heads/main' && 'latest' || 'next' }} | |
if: ${{ steps.release.outputs.release_created }} |