Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .config/release-it.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { Config } from "release-it";

export default {
git: {
commitArgs: ["--no-verify"],
},
} satisfies Config;
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup
Expand All @@ -32,7 +32,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup
Expand All @@ -44,7 +44,7 @@ jobs:
build-library:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup
Expand All @@ -59,7 +59,7 @@ jobs:
build-web:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup
Expand All @@ -78,7 +78,7 @@ jobs:
build-ios-dev:
runs-on: macos-15
steps:
- name: Checkout
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release & Publish to NPM

on: workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup

- name: Initialize Git user
shell: bash
run: |
git config user.name "github-actions"
git config user.email "mwlawlor@gmail.com"

- name: Setup NPM registry
run: |
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Run release
run: |
yarn release --ci --preRelease --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,5 @@ nitrogen/
# generated by bob
dist/

.env
.env
.npmrc
Loading