Skip to content

Commit 47c7407

Browse files
committed
CI: Prospective fix for npm publishing
Use latest pnpm to determine the package version.
1 parent 12c0a73 commit 47c7407

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/publish_npm_package.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,14 @@ jobs:
2727
PKG_VERSION: ${{ steps.mkversion.outputs.PKG_VERSION }}
2828
steps:
2929
- uses: actions/checkout@v5
30-
# Setup .npmrc file to publish to npm
3130
- uses: actions/setup-node@v5
32-
with:
33-
node-version: "20.x"
34-
registry-url: "https://registry.npmjs.org"
3531
- name: Determine version
3632
id: mkversion
3733
env:
3834
RELEASE_INPUT: ${{ github.event.inputs.release }}
3935
working-directory: api/node
4036
run: |
41-
version=`npm pkg get version | jq -r`
37+
version=`pnpm pkg get version | jq -r`
4238
if [ "$RELEASE_INPUT" != "true" ]; then
4339
nightly_version_suffix=`git log -1 --format=%cd --date="format:%Y%m%d%H"`
4440
version="$version-nightly.$nightly_version_suffix"

0 commit comments

Comments
 (0)