Skip to content

Commit

Permalink
push word list version changes
Browse files Browse the repository at this point in the history
  • Loading branch information
skedwards88 committed Nov 15, 2023
1 parent 924bb21 commit 22605c0
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
- "README.md"
- "TODO.md"
- ".github/ISSUE_TEMPLATE/*"
- ".eslintrc.json"
- ".gitignore"
- ".prettierignore"
- ".prettierrc.json"
- ".stylelintrc.json"
workflow_dispatch:
repository_dispatch:
types: [update-word-lists]
Expand Down Expand Up @@ -39,12 +44,8 @@ jobs:
- name: Bump version
run: npm version patch

- name: Push
run: |
git push origin main
- name: Install requirements
run: npm install
run: npm ci

- name: Print packages
run: npm list --depth=0
Expand All @@ -55,6 +56,20 @@ jobs:
- name: Print packages
run: npm list --depth=0

# This keeps package-lock.json up to date with the deployed game
- name: Commit the word list update if there are changes to commit
run: |-
if git diff --exit-code > /dev/null -- package-lock.json; then
echo "No changes to commit"
else
git add package-lock.json
git commit -m "Update @skedwards88/word_lists"
fi
- name: Push the version bump and potential word list update
run: |
git push
- name: Build
run: npm run build

Expand Down

0 comments on commit 22605c0

Please sign in to comment.