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
9 changes: 9 additions & 0 deletions .fernignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Specify files that shouldn't be modified by Fern

# Legacy CI workflow replaced by release-please.yml — keep listed so Fern
# does not regenerate the file after deletion.
.github/workflows/ci.yml

# Release-please owns versioning, releases, and npm publish.
.github/workflows/release-please.yml
release-please-config.json
.release-please-manifest.json
CHANGELOG.md

# ignore context7 config file
context7.json
65 changes: 0 additions & 65 deletions .github/workflows/ci.yml

This file was deleted.

85 changes: 85 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: release-please

on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read

jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: "24"
- name: Compile
run: yarn && yarn build

test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: "24"
- name: Test
run: yarn && yarn test

release-please:
needs: [compile, test]
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- name: Run release-please
id: release
uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json

publish:
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Publish to npm
env:
TAG_NAME: ${{ needs.release-please.outputs.tag_name }}
run: |
if [[ "$TAG_NAME" == *alpha* ]]; then
npm publish --provenance --access public --tag alpha
elif [[ "$TAG_NAME" == *beta* ]]; then
npm publish --provenance --access public --tag beta
else
npm publish --provenance --access public
fi
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.0.2"
}
17 changes: 17 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "node",
"include-v-in-tag": false,
"include-component-in-tag": false,
"packages": {
".": {
"package-name": "@speechify/api",
"extra-files": [
{
"type": "generic",
"path": "src/version.ts"
}
]
}
}
}
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SDK_VERSION = "1.0.2";
export const SDK_VERSION = "1.0.2"; // x-release-please-version
Loading