Skip to content
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.

Commit

Permalink
ci(github actions): use @kai/show-next-version in pull requests to pr…
Browse files Browse the repository at this point in the history
…eview version bump
  • Loading branch information
spotify-kai committed Mar 10, 2021
1 parent 55bd989 commit b21b8bc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/preview-semantic-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Preview semantic-release

on:
pull_request:
branches: ['*']

jobs:
preview-semantic-release:
name: Preview semantic-release
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js 15.x
uses: actions/setup-node@v2
with:
node-version: 15
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build --if-present
- name: Preview semantic-release
run: npx @kai/show-next-version@next
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install dependencies
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
Expand All @@ -30,5 +30,3 @@ jobs:
run: npm run lint
- name: Run tests
run: npm test
- name: Release Dry-run
run: npx semantic-release --branches "$GITHUB_HEAD_REF" --dry-run --no-ci

0 comments on commit b21b8bc

Please sign in to comment.