Commit 6f3880ed authored by Robert Knight's avatar Robert Knight

Adapt to `yarn version` changes in Yarn v3

 - Install the plugin to enable this command, per instructions in
   https://yarnpkg.com/cli/version
 - Adapt to syntax changes. Note `--no-git-tag-version` option no longer
   exists.
parent 044f6b82
......@@ -48,7 +48,7 @@ jobs:
QA_VERSION=$(git tag --list | sort --version-sort --reverse | head -n1 | tail -c +2)-$LAST_COMMIT_HASH
echo "QA_VERSION=$QA_VERSION" >> $GITHUB_ENV
- name: Build app
run: yarn version --no-git-tag-version --new-version "$QA_VERSION"
run: yarn version "$QA_VERSION"
- name: Upload files to Sentry
env:
SENTRY_AUTH_TOKEN: ${{ secrets.sentry_auth_token }}
......@@ -95,7 +95,7 @@ jobs:
git push https://github.com/hypothesis/client.git v$NEW_VERSION
sleep 2 # Wait for GitHub to see new tag
- name: Build app
run: yarn version --no-git-tag-version --new-version $NEW_VERSION
run: yarn version $NEW_VERSION
- name: Upload files to Sentry
env:
SENTRY_AUTH_TOKEN: ${{ secrets.sentry_auth_token }}
......
This diff is collapsed.
yarnPath: .yarn/releases/yarn-3.6.0.cjs
nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"
yarnPath: .yarn/releases/yarn-3.6.0.cjs
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment