try using the environment variable

(rebased-with-history from commit 09ce038f26)
This commit is contained in:
Josh de Leeuw 2024-01-14 16:28:25 -05:00 committed by bjoluc
commit 6fa906f386

View File

@ -26,10 +26,10 @@ jobs:
- name: Get current version
id: version
run: echo "::set-output name=version::$(node -p "const version = require('./packages/jspsych/package.json').version; const [major, minor] = version.split('.'); return `${major}.${minor}`;")"
run: echo "version=$(node -p "const version = require('./packages/jspsych/package.json').version; const [major, minor] = version.split('.'); `${major}.${minor}`;")" >> "$GITHUB_ENV"
- name: Deploy docs
run: npm run docs:deploy ${{ steps.version.outputs.version }}
run: npm run docs:deploy "$version"
- name: Checkout gh-docs branch
uses: actions/checkout@v2