Skip to content

Commit

Permalink
Merge pull request #8 from PunGrumpy/dev/ci
Browse files Browse the repository at this point in the history
ci(github-actions): update npm check version flow
  • Loading branch information
PunGrumpy authored Nov 19, 2023
2 parents af7dcd6 + 51d70e0 commit 45209e8
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: 📦 Node Package Manager
on:
workflow_run:
workflows: ['🤹‍♂️ Continuous Integration']
workflows: ['🧝 Continuous Delivery']
types: [completed]
branches: [main]
jobs:
test_version:
name: 🧪 Test Version
Expand All @@ -20,6 +21,7 @@ jobs:
- name: 🦊 Install Logixlysia
run: npm install logixlysia
- name: 🔖 Check version
id: check_version
run: |
touch .version
ACTUAL_VERSION=$(npm view logixlysia version)
Expand All @@ -28,12 +30,9 @@ jobs:
echo "Expected version: $EXPECTED_VERSION" >> .version
if [ "$ACTUAL_VERSION" != "$EXPECTED_VERSION" ]; then
echo "Version mismatch: expected $EXPECTED_VERSION, got $ACTUAL_VERSION"
echo "status=mismatch" >> $GITHUB_OUTPUT
exit 1
fi
- name: 😶‍🌫️ Upload artifacts
uses: actions/upload-artifact@v3
if: failure()
with:
name: logs
path: |
.version
echo "status=match" >> $GITHUB_OUTPUT
outputs:
status: ${{ steps.check_version.outputs.status }}

0 comments on commit 45209e8

Please sign in to comment.