mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
get major.minor version another way
This commit is contained in:
parent
a13601c3c1
commit
841d43250c
5
.github/workflows/publish-docs.yml
vendored
5
.github/workflows/publish-docs.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user