Skip to content

Commit

Permalink
fix: update publish workflow to include bundled package in dist
Browse files Browse the repository at this point in the history
  • Loading branch information
yassinedoghri committed Apr 30, 2022
1 parent 3a002cb commit 5428dc3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:

bundle:
runs-on: ubuntu-latest
needs: quality
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -31,24 +32,25 @@ jobs:
- run: npm run build
- uses: actions/upload-artifact@v3
with:
name: dist
name: bundle
path: ./dist/
retention-days: 1
if-no-files-found: error

publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha'
needs: [quality, bundle]
needs: bundle
steps:
- uses: actions/download-artifact@v3
with:
name: dist
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN_SEMANTIC_RELEASE }}
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/download-artifact@v3
with:
name: bundle
- run: npm ci
- run: npm run semantic-release
env:
Expand Down

0 comments on commit 5428dc3

Please sign in to comment.