Skip to content

Commit

Permalink
get major.minor version another way
Browse files Browse the repository at this point in the history
  • Loading branch information
jodeleeuw committed Jan 14, 2024
1 parent a13601c commit 841d432
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ jobs:
id: version
run: echo "version=$(node -p "require('./packages/jspsych/package.json').version")" >> "$GITHUB_ENV"

- name: Remove patch version
run: echo "version_major_minor=${{ env.version }}" | awk -F. '{print $1"."$2}' >> "$GITHUB_ENV"

- name: Deploy docs
run: npm run docs:deploy ${{ env.version }}
run: npm run docs:deploy ${{ env.version_major_minor }}

- name: Checkout gh-docs branch
uses: actions/checkout@v2
Expand Down

0 comments on commit 841d432

Please sign in to comment.