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
6 changes: 6 additions & 0 deletions .github/workflows/exit-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ jobs:
ref: ${{ github.event.inputs.branch }}
fetch-depth: 0

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Install deps
run: nix develop -c pnpm install --frozen-lockfile

- name: Get GitHub App User ID
id: get-user-id
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ jobs:
token: ${{ steps.app-token.outputs.token }}
fetch-depth: 0

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Install deps
run: nix develop -c pnpm install --frozen-lockfile

- name: Check for pre.json file existence
id: check_files
uses: andstor/file-existence-action@v3
Expand All @@ -47,7 +53,7 @@ jobs:
GH_TOKEN: ${{ steps.app-token.outputs.token }}

- name: Enter prerelease mode
if: steps.check_files.outputs.files_exists == 'false' && !contains(github.event.head_commit.message, env.EXIT_PRERELEASE_COMMIT_MSG)
if: steps.check_files.outputs.files_exists == 'false' && !contains(github.event.head_commit.message, env.EXIT_PRERELEASE_COMMIT_MSG) && !contains(github.event.head_commit.message, 'changeset-release/')
run: |
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
Expand All @@ -66,7 +72,7 @@ jobs:

- name: Publish to npm + GitHub
id: changesets
if: steps.check_files.outputs.files_exists == 'true' && startsWith(github.event.head_commit.message, env.VERSION_PR_COMMIT_PREFIX)
if: steps.check_files.outputs.files_exists == 'true' && contains(github.event.head_commit.message, 'changeset-release/')
uses: changesets/action@v1
with:
version: echo "This step should never version"
Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# fayda

## 0.0.12

### Patch Changes

- ce0c5c9: feat: setup prerelease workflow
- f97db7d: fix: bugs in prerelease workflow

## 0.0.12-next.1

### Patch Changes

- f97db7d: fix: bugs in prerelease workflow

## 0.0.12-next.0

### Patch Changes

- ce0c5c9: feat: setup prerelease workflow

## 0.0.11

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fayda",
"version": "0.0.11",
"version": "0.0.12",
"description": "Better Auth plugin for Fayda.",
"zshy": "./src/index.ts",
"license": "MIT",
Expand Down
Loading