Skip to content

Commit

Permalink
ci: run semantic-release dry-run on all branches but main, alpha + beta
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisEff committed Feb 20, 2022
1 parent a297231 commit d1c53a4
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/semantic-release-dry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push events for the main, alpha + beta branch
push:
branches-ignore:
- main
- alpha
- beta

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "release"
release:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: install dependencies
run: yarn

- name: run unit tests
run: yarn test

- name: execute semantic-release
run: yarn semantic-release --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7 changes: 5 additions & 2 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ name: CI
on:
# Triggers the workflow on push events for the main, alpha + beta branch
push:
branches: [main, alpha, beta]
branches:
- main
- alpha
- beta

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -28,7 +31,7 @@ jobs:
run: yarn test

- name: execute semantic-release
run: npx semantic-release
run: yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit d1c53a4

Please sign in to comment.