Skip to content

Commit

Permalink
fix: test new output vars
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Dec 4, 2023
1 parent fc89b8b commit 227f8e7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release-please.yml
Expand Up @@ -37,25 +37,25 @@ jobs:

# Publish to NPM on new releases
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.releases_created || github.event.inputs.publish == 'true' }}
if: ${{ steps.release.outputs.release_created || github.event.inputs.publish == 'true' }}
- uses: pnpm/action-setup@v2
if: ${{ steps.release.outputs.releases_created || github.event.inputs.publish == 'true' }}
if: ${{ steps.release.outputs.release_created || github.event.inputs.publish == 'true' }}
- uses: actions/setup-node@v4
if: ${{ steps.release.outputs.releases_created || github.event.inputs.publish == 'true' }}
if: ${{ steps.release.outputs.release_created || github.event.inputs.publish == 'true' }}
with:
cache: pnpm
node-version: lts/*
registry-url: "https://registry.npmjs.org"
- run: corepack enable && pnpm --version && pnpm install
if: ${{ steps.release.outputs.releases_created || github.event.inputs.publish == 'true' }}
if: ${{ steps.release.outputs.release_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.releases_created || github.event.inputs.publish == 'true' }}
if: ${{ steps.release.outputs.release_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 the new version to npm here
- run: pnpm publish
if: ${{ steps.release.outputs.releases_created || github.event.inputs.publish == 'true' }}
if: ${{ steps.release.outputs.release_created || github.event.inputs.publish == 'true' }}
env:
NPM_CONFIG_PROVENANCE: true

0 comments on commit 227f8e7

Please sign in to comment.