Skip to content

Commit

Permalink
publish workflow edit
Browse files Browse the repository at this point in the history
  • Loading branch information
fco-fbatch committed Nov 15, 2023
1 parent 5b8a97a commit 719a39d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,19 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- run: yarn
- run: yarn build
- run: yarn publish
- uses: JS-DevTools/npm-publish@v3
id: publish
with:
token: ${{ secrets.NPM_TOKEN }}

- if: ${{ steps.publish.outputs.type }}
run: echo "$PCKG_ID published to $PCKG_TAG, old version was [$OLD_VER]"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
OLD_VER: ${{ steps.publish.outputs.old-version }}
PCKG_ID: ${{ steps.publish.outputs.id }}
PCKG_TAG: ${{ steps.publish.outputs.tag }}

0 comments on commit 719a39d

Please sign in to comment.