Skip to content

Commit

Permalink
Add build step to release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed May 7, 2024
1 parent ed3a043 commit 453377d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
node-version: lts/*
registry-url: "https://registry.npmjs.org"

- run: npm install
- run: |
npm install
npm run build
if: ${{ steps.release.outputs.releases_created }}
#-----------------------------------------------------------------------------
Expand All @@ -48,9 +50,7 @@ jobs:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish @eslint/object-schema package to JSR
run: |
npm run build --if-present
npx jsr publish
run: npx jsr publish
working-directory: packages/object-schema
if: ${{ steps.release.outputs['packages/object-schema--release_created'] }}

Expand Down Expand Up @@ -81,9 +81,7 @@ jobs:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish @eslint/config-array package to JSR
run: |
npm run build --if-present
npx jsr publish
run: npx jsr publish
working-directory: packages/config-array
if: ${{ steps.release.outputs['packages/config-array--release_created'] }}

Expand Down

0 comments on commit 453377d

Please sign in to comment.