Updated Github workflow to build, prune, recommit, and update tag

This commit is contained in:
Drew Heavner
2019-12-04 10:08:27 -05:00
parent a29f8cd536
commit 4248af043a
2 changed files with 24 additions and 17 deletions

24
.github/workflows/release.yml vendored Normal file
View File

@@ -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

View File

@@ -1,17 +0,0 @@
name: "Tag & Deploy Action"
on:
pull_request:
push:
branches:
- master
- 'releases/*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: npm ci
- run: npm run build
- run: npm test