Skip to content

Commit

Permalink
try using the environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jodeleeuw committed Jan 14, 2024
1 parent ab31ef6 commit 09ce038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09ce038

Please sign in to comment.