Skip to content

Commit

Permalink
ci: run release job directly in main CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
screendriver committed Oct 11, 2020
1 parent 980befd commit 1062324
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,25 @@ jobs:
path: target/src/
- name: Run tests
run: npm run test:integration
release:
if: github.ref == 'refs/heads/main'
needs: [commitlint, code-coverage, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install dependencies
run: npm ci
- name: Download compiled source code artifact
uses: actions/download-artifact@v2
with:
name: compiled-source-node-14
path: target/src/
- name: Semantic release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
23 changes: 0 additions & 23 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 1062324

Please sign in to comment.