diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..9fb3d2a9 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 6ab0e96c..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -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