Skip to content

Commit

Permalink
feat(repo): update gh actions for semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Apr 26, 2021
1 parent e33d657 commit ed933e9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Run CI checks
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master]
branches: [master, dev]

env:
NX_BRANCH: ${{ github.event.number }}
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
runs-on: ubuntu-latest
name: Publish packages to dev
needs: [pre-run]
if: ${{needs.pre-run.outputs.skip != 'true' && github.ref == 'refs/heads/master' && github.event_name == 'push'}}
if: ${{needs.pre-run.outputs.skip != 'true' && github.event_name == 'push'}}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
Expand All @@ -74,6 +74,11 @@ jobs:
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: yarn ts-node tools/scripts/publish-dev
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Expand All @@ -83,6 +88,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
tags: true

# e2e:
# runs-on: ubuntu-latest
# name: E2E testing affected apps
Expand Down

0 comments on commit ed933e9

Please sign in to comment.