Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] steps.publish.type, steps.publish.version is always "" #2

Closed
narumincho opened this issue Apr 5, 2020 · 1 comment
Closed
Labels
documentation Improvements or additions to documentation

Comments

@narumincho
Copy link

name: npm publish

on:
  push:
    branches:
      - master

jobs:
  npm-publish:
    name: npm publish
    runs-on: ubuntu-latest
    steps:
      - name: checkout repository
        uses: actions/checkout@master
      - name: setup Node.js
        uses: actions/setup-node@master
        with:
          node-version: "12.x"
      - name: Install npm dependencies (npm ci)
        run: npm ci
      - name: npm publish
        id: publish
        uses: JS-DevTools/npm-publish@v1
        with:
          token: ${{ secrets.NPM_AUTH_TOKEN }}
      - name: output version name
        run: echo type = ${{ steps.publish.type }}, version = ${{ steps.publish.version }}

output

type = , version =
@JamesMessinger
Copy link
Member

Oh, sorry. The example in the docs was missing the .outputs property. I've updated the ReadMe to fix that.

Here's the change you'll need to make to your script:

run: echo type = ${{ steps.publish.outputs.type }}, version = ${{ steps.publish.outputs.version }}

@JamesMessinger JamesMessinger added the documentation Improvements or additions to documentation label Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants