Skip to content

Commit

Permalink
debug 2
Browse files Browse the repository at this point in the history
  • Loading branch information
bhargavprajapatiFynd committed Jan 10, 2024
1 parent 6c1e1e0 commit c625f84
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/test_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,21 @@ on:
- 'test_github_action'

jobs:
tests:
uses: ./.github/workflows/call_test_cases.yml
# tests:
# uses: ./.github/workflows/call_test_cases.yml


publish_checks:
# needs:
# - tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Add Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: node ./scripts/productionReleaseCheck.js
14 changes: 14 additions & 0 deletions scripts/productionReleaseCheck.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const packageJSON = require('../package.json');

// match release version
const regex = /^\d+\.\d+\.\d+$/;

if (!regex.test(packageJSON.version)) {
console.log('\x1b[33m Invalid package version. Release aborted ! \x1b[0m');
return process.exit(1);
}

console.log('\x1b[32m Release initiated ! \x1b[0m');


console.log(process.env)

0 comments on commit c625f84

Please sign in to comment.