Skip to content

Commit

Permalink
chore: Update release automation to require a build before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Dec 1, 2023
1 parent 1359bcb commit f0d078a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
branches: [ main ]
push:
branches: [ main ]
workflow_call:
branches: [ main ]

jobs:
build:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
build:
uses: ./.github/workflows/build.yml
deploy_alpha:
name: Publish alpha npm package
needs: [build]
runs-on: [ubuntu-latest]

steps:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }

jobs:
deploy_alpha:
build:
uses: ./.github/workflows/build.yml
deploy_release:
name: Publish npm package
needs: [build]
runs-on: [ubuntu-latest]

steps:
Expand Down

0 comments on commit f0d078a

Please sign in to comment.