Skip to content

Commit ddd9ccc

Browse files
authored
changesets action (#332)
1 parent 1dd1a0e commit ddd9ccc

File tree

9 files changed

+8975
-8284
lines changed

9 files changed

+8975
-8284
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
3+
"changelog": ["@livekit/changesets-changelog-github", { "repo": "livekit/client-sdk-react-native" }],
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/changeset.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
concurrency: ${{ github.workflow }}-${{ github.ref }}
10+
11+
permissions:
12+
id-token: write # Required for OIDC
13+
contents: write # Required to create GH releases
14+
pull-requests: write # Required to interact with PRs
15+
16+
jobs:
17+
release:
18+
name: Release
19+
runs-on: ubuntu-latest
20+
env:
21+
NPM_CONFIG_PROVENANCE: true
22+
steps:
23+
- name: Checkout Repo
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
28+
- name: Use Node.js 24
29+
uses: actions/setup-node@v6
30+
with:
31+
node-version: 24 # NPM 11.5.1+ required for OIDC trusted publishing
32+
cache: yarn
33+
cache-dependency-path: yarn.lock
34+
35+
- name: Enable Corepack
36+
run: corepack enable
37+
38+
- name: Install dependencies
39+
run: yarn install --immutable
40+
41+
- name: Create Release Pull Request or Publish to npm
42+
id: changesets
43+
uses: changesets/action@v1
44+
with:
45+
version: yarn ci:version
46+
publish: yarn ci:publish
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
50+
- name: Build docs
51+
if: steps.changesets.outputs.published == 'true'
52+
run: yarn build-docs --treatWarningsAsErrors
53+
54+
- name: S3 Upload
55+
if: steps.changesets.outputs.published == 'true'
56+
run: aws s3 cp docs/ s3://livekit-docs/client-sdk-react-native --recursive
57+
env:
58+
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }}
59+
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }}
60+
AWS_DEFAULT_REGION: "us-east-1"

.yarn/releases/yarn-3.6.4.cjs

Lines changed: 0 additions & 874 deletions
This file was deleted.

.yarn/releases/yarn-4.11.0.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
15
nodeLinker: node-modules
26

3-
yarnPath: .yarn/releases/yarn-3.6.4.cjs
7+
yarnPath: .yarn/releases/yarn-4.11.0.cjs

0 commit comments

Comments
 (0)