Skip to content

Commit

Permalink
chore: add github actions to verify posix version (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonpombo8 authored Sep 27, 2021
1 parent 1d347d2 commit 7500339
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/check-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
branches:
- "main"

name: Verify posix version
jobs:
verify_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: verify posix version
working-directory: ./packages/decentraland-ecs
run: |
node -e "
const pkg = require('./package.json')
const posixVersion = pkg.dependencies['@dcl/posix']
const snapshotExpr = /-/ // if it contains a dash, it is a snapshot
if (snapshotExpr.test(posixVersion)) {
process.exit(1)
}
"

0 comments on commit 7500339

Please sign in to comment.