Skip to content

Commit

Permalink
chore: assert package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
macjuul committed Aug 27, 2024
1 parent d36d89c commit a291a0a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@ jobs:
with:
version: 9

- name: Extract versions
run: |
echo "GIT_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
echo "CM_VERSION=$(node -p \"require('./packages/codemirror-surrealql/package.json').version\")" >> $GITHUB_ENV
echo "LZ_VERSION=$(node -p \"require('./packages/lezer-surrealql/package.json').version\")" >> $GITHUB_ENV
- name: Assert package versions
run: |
echo "CM_VERSION=$CM_VERSION"
echo "LZ_VERSION=$LZ_VERSION"
echo "GIT_TAG=$GIT_TAG"
if [ "$CM_VERSION" != "$GIT_TAG" -a "$LZ_VERSION" != "$GIT_TAG"]; then
echo "Version mismatch! Please correct package versions"
exit 1
else
echo "Version check complete"
fi
- name: Build packages
run: pnpm install --frozen-lockfile && pnpm build

Expand Down
1 change: 0 additions & 1 deletion packages/codemirror-surrealql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@surrealdb/codemirror",
"private": true,
"version": "1.0.0-beta.1",
"author": "SurrealDB",
"description": "SurrealQL language support for CodeMirror",
Expand Down
1 change: 0 additions & 1 deletion packages/lezer-surrealql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@surrealdb/lezer",
"private": true,
"version": "1.0.0-beta.1",
"author": "SurrealDB",
"description": "SurrealQL grammar for Lezer",
Expand Down

0 comments on commit a291a0a

Please sign in to comment.