We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b8a97a commit 719a39dCopy full SHA for 719a39d
.github/workflows/publish.yml
@@ -59,11 +59,19 @@ jobs:
59
60
- uses: actions/setup-node@v3
61
with:
62
- node-version: '18.x'
+ node-version: '20'
63
registry-url: 'https://registry.npmjs.org'
64
65
- run: yarn
66
- run: yarn build
67
- - run: yarn publish
+ - 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]"
74
env:
- 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