Skip to content

Commit

Permalink
chore: fix release command
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Sep 19, 2024
1 parent 971e944 commit 934dcfa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,25 @@ jobs:

# Publish to NPM on new releases
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created || github.event.inputs.publish == 'true' }}
if: ${{ steps.release.outputs.releases_created || github.event.inputs.publish == 'true' }}
- uses: pnpm/action-setup@v4
if: ${{ steps.release.outputs.release_created || github.event.inputs.publish == 'true' }}
if: ${{ steps.release.outputs.releases_created || github.event.inputs.publish == 'true' }}
- uses: actions/setup-node@v4
if: ${{ steps.release.outputs.release_created || github.event.inputs.publish == 'true' }}
if: ${{ steps.release.outputs.releases_created || github.event.inputs.publish == 'true' }}
with:
cache: pnpm
node-version: lts/*
- name: install deps & build
run: pnpm install --ignore-scripts && pnpm build --filter=!./apps/*
if: ${{ steps.release.outputs.release_created || github.event.inputs.publish == 'true' }}
if: ${{ steps.release.outputs.releases_created || github.event.inputs.publish == 'true' }}
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
if: ${{ steps.release.outputs.release_created || github.event.inputs.publish == 'true' }}
if: ${{ steps.release.outputs.releases_created || github.event.inputs.publish == 'true' }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
# Release Please has already incremented versions and published tags, so we just
# need to publish all unpublished versions to NPM here
- run: pnpm -r publish
if: ${{ steps.release.outputs.release_created || github.event.inputs.publish == 'true' }}
if: ${{ steps.release.outputs.releases_created || github.event.inputs.publish == 'true' }}
env:
NPM_CONFIG_PROVENANCE: true

0 comments on commit 934dcfa

Please sign in to comment.