-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add in GH Actions for verison bumping, and artifact uploading
- Loading branch information
1 parent
d59a767
commit a0aa107
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,22 @@ jobs: | |
- name: Test | ||
run: npm run ci:test | ||
|
||
- name: Bump version and push tag | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
npm version patch -m "Bump version to %s [skip ci]" | ||
git push origin --tags | ||
- name: Build | ||
run: npm run build:prod | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist | ||
path: dist/chuck-norris-joke-generator/browser | ||
|
||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
|