Skip to content

Commit

Permalink
fix: adds build step to release to ensure the rollup bundle is genera…
Browse files Browse the repository at this point in the history
…ted (#58)

* fix: adds linting and testing to build phase. deploy phase is now the build phase

* ci: forces deploy and docs to depend on lint and test jobs

Configures GH Actions to no longer deploy to npm and deploy docs unless the linting and testing have
passed.

* fix: re-adds the workflow order

The workflow over got overwritten in a merge conflict.

* fix: adds build step to release to ensure the rollup bundle is generated

Co-authored-by: Andrew Stacy <[email protected]>
  • Loading branch information
Andrew Stacy and Andrew Stacy authored Apr 21, 2021
1 parent 905540b commit de9bd51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
run: yarn test
release:
name: Release
needs: [lint, test]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -42,13 +43,16 @@ jobs:
node-version: 12
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Build
run: yarn build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
docs:
runs-on: ubuntu-latest
needs: [lint, test, release]
steps:
- name: Checkout
uses: actions/checkout@v1
Expand Down

0 comments on commit de9bd51

Please sign in to comment.