Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Upgrade deps and new check version (#9)
Browse files Browse the repository at this point in the history
* new check version

* v bump
  • Loading branch information
jonmattgray committed Aug 23, 2023
1 parent 9dcb879 commit d5e75d4
Show file tree
Hide file tree
Showing 6 changed files with 1,740 additions and 983 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,11 @@ jobs:

steps:
- uses: actions/checkout@v3
- run: git fetch --depth=1 --tags origin
- name: Check Build Version
- name: Check version
id: get_version
run: ./scripts/check-version.sh
shell: bash
- name: Skipping release as version has not increased
if: steps.get_version.outputs.IS_NEW_VERSION != 'true'
shell: bash
run: |
echo "Skipping release as current version has already been published"
uses: digicatapult/check-version@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

publish:
name: "Publish package"
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,12 @@ jobs:
run: npm run test

check-version:
name: "Check version"
needs: [lint, dependency-check, tests]
name: 'Check version'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- run: git fetch --depth=1 --tags origin
- name: Check Build Version
- name: Check version
id: get_version
run: ./scripts/check-version.sh
shell: bash
- name: Error if version is not increased
shell: bash
run: |
exit $([[ "${{steps.get_version.outputs.IS_NEW_VERSION}}" = "true" ]] && echo 0 || echo 1)
uses: digicatapult/check-version@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit d5e75d4

Please sign in to comment.