diff --git a/.config/release-it.config.ts b/.config/release-it.config.ts new file mode 100644 index 00000000..a9b7cc1c --- /dev/null +++ b/.config/release-it.config.ts @@ -0,0 +1,7 @@ +import type { Config } from "release-it"; + +export default { + git: { + commitArgs: ["--no-verify"], + }, +} satisfies Config; diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7638bb1b..8fdb0f9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout Repository uses: actions/checkout@v4 - name: Setup @@ -32,7 +32,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout Repository uses: actions/checkout@v4 - name: Setup @@ -44,7 +44,7 @@ jobs: build-library: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout Repository uses: actions/checkout@v4 - name: Setup @@ -59,7 +59,7 @@ jobs: build-web: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout Repository uses: actions/checkout@v4 - name: Setup @@ -78,7 +78,7 @@ jobs: build-ios-dev: runs-on: macos-15 steps: - - name: Checkout + - name: Checkout Repository uses: actions/checkout@v4 - name: Setup diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..ed3d3c9d --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.gitignore b/.gitignore index e1d9c7b8..60077932 100644 --- a/.gitignore +++ b/.gitignore @@ -85,4 +85,5 @@ nitrogen/ # generated by bob dist/ -.env \ No newline at end of file +.env +.npmrc \ No newline at end of file