generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Github workflow to build, prune, recommit, and update tag
- Loading branch information
Showing
2 changed files
with
24 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: "Tag & Deploy Action" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Build Action | ||
run: | | ||
npm ci | ||
npm run build | ||
- name: Update v1 Tag | ||
run: | | ||
npm prune --production | ||
git commit -m "Pruning Node Modules, Preparing for release" | ||
git tag -fa v1 -m "Update v1 tag" | ||
git push origin --force --tags |
This file was deleted.
Oops, something went wrong.