Skip to content

Commit

Permalink
Merge pull request #14 from bcelenza/semantic
Browse files Browse the repository at this point in the history
ci(GitHub): Add actions for semantic release
  • Loading branch information
bcelenza authored Feb 5, 2023
2 parents fe81253 + 80671c3 commit 8ae6dbf
Show file tree
Hide file tree
Showing 7 changed files with 15,294 additions and 5,577 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release-dryrun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release Dry Run
on:
pull_request:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install Dependencies
run: npm ci
- name: Build Package
run: make release
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release -d
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install Dependencies
run: npm ci
- name: Build Package
run: make release
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.17.0
v18.13.0
2 changes: 2 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
branches:
- main
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.PHONY: install
install:
npm install

.PHONY: clean
clean:
rm -rf dist
Expand Down
Loading

0 comments on commit 8ae6dbf

Please sign in to comment.