Skip to content

Commit

Permalink
Merge pull request #719 from Riverside-Healthcare/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherpickering committed Jul 19, 2023
2 parents 6f4df2e + 41fa758 commit 65069f8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@ on:
- dev

jobs:
test_version:
name: test update version
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false

- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: test
run: node scripts/updateVersion.js 1.2.3
test:
name: python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion scripts/updateVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const updateVersion = async () => {
packageJson.scripts.postinstall = `python3 -m pip install --upgrade djlint==${nextVersion}`;
await fs.writeFile(
'package.json',
prettier.format(JSON.stringify(packageJson), { filepath: 'package.json' }),
await prettier.format(JSON.stringify(packageJson), { filepath: 'package.json' }),
);
};

Expand Down

0 comments on commit 65069f8

Please sign in to comment.