Skip to content

Commit 719a39d

Browse files
committed
publish workflow edit
1 parent 5b8a97a commit 719a39d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,19 @@ jobs:
5959

6060
- uses: actions/setup-node@v3
6161
with:
62-
node-version: '18.x'
62+
node-version: '20'
6363
registry-url: 'https://registry.npmjs.org'
6464

6565
- run: yarn
6666
- run: yarn build
67-
- run: yarn publish
67+
- uses: JS-DevTools/npm-publish@v3
68+
id: publish
69+
with:
70+
token: ${{ secrets.NPM_TOKEN }}
71+
72+
- if: ${{ steps.publish.outputs.type }}
73+
run: echo "$PCKG_ID published to $PCKG_TAG, old version was [$OLD_VER]"
6874
env:
69-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
75+
OLD_VER: ${{ steps.publish.outputs.old-version }}
76+
PCKG_ID: ${{ steps.publish.outputs.id }}
77+
PCKG_TAG: ${{ steps.publish.outputs.tag }}

0 commit comments

Comments
 (0)