Skip to content

Commit

Permalink
Merge pull request #15 from matzar/chore/workflow
Browse files Browse the repository at this point in the history
chore: workflows
  • Loading branch information
matzar authored Oct 27, 2022
2 parents db5e4a5 + d395233 commit 9824025
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release-dry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Dry Release
on:
# on create a PR to 'master' branch
pull_request:
branches:
- "master"
jobs:
dry_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: npm ci
- name: Dry Release
run: npx semantic-release
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: npm ci
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Published
on:
release:
types: [published]

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: echo "This should be triggered when a release is published"

0 comments on commit 9824025

Please sign in to comment.