Skip to content

Commit

Permalink
- Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Cornu committed Nov 29, 2023
1 parent 915cb2c commit 992ade2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,18 @@ jobs:

- name: get-npm-version
id: package-version
run: echo "currentVersion=npm view pnp-modern-search-core dist-tags.latest" >> "$GITHUB_OUTPUT"
run: |
latest=npm view pnp-modern-search-core dist-tags.latest
echo "currentVersion=latest" >> "$GITHUB_OUTPUT"
- uses: actions/download-artifact@v3
with:
name: build_dist

- name: Publish
if: ${{ steps.package-version.outputs.currentVersion != needs.version.outputs.semver }}
run: npm publish
env:
CURRENT_VERSION: ${{ steps.package-version.outputs.currentVersion }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
if: ${{ CURRENT_VERSION != needs.version.outputs.semver }}
run: npm publish

0 comments on commit 992ade2

Please sign in to comment.