Skip to content

Commit

Permalink
chore(release): Build code again before releasing
Browse files Browse the repository at this point in the history
Instead of uploading build from each env in the test matrix.
  • Loading branch information
gnarea committed Oct 14, 2020
1 parent 493c2ab commit a1e145c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ jobs:
${{ runner.os }}-node-
- run: npm ci
- run: npm run static-checks
- run: npm run build

- name: Upload build
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v2
with:
name: build
path: build/

release:
needs: ci
Expand All @@ -49,11 +41,7 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- name: Download build
uses: actions/download-artifact@v2
with:
name: build
path: build/
- run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit a1e145c

Please sign in to comment.