diff --git a/.github/workflows/dev-releases-for-pr.yml b/.github/workflows/dev-releases-for-pr.yml index 1116b4a5c..d162ec77d 100644 --- a/.github/workflows/dev-releases-for-pr.yml +++ b/.github/workflows/dev-releases-for-pr.yml @@ -72,8 +72,10 @@ jobs: */node_modules key: ${{ runner.os }}-dependency-caching-${{ hashFiles('package.json', '*/package.json') }} - run: npm install - - run: | - npm version prerelease --no-git-tag-version -f --preid dev-$(${{ github.event.pull_request.number }})-$(date +\"%Y%m%dT%H%M%S\") + - env: + PR_NUMBER: ${{ github.event.pull_request.number }} + run: | + npm version prerelease --no-git-tag-version -f --preid dev-$PR_NUMBER-$(date +\"%Y%m%dT%H%M%S\") npm publish --tag dev --dry-run working-directory: ${{ matrix.plugin }} - name: get-npm-version