Skip to content

Commit ee8a75b

Browse files
committed
changesets action
1 parent 02eaaa4 commit ee8a75b

6 files changed

Lines changed: 8590 additions & 8459 deletions

File tree

.github/workflows/changeset.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
publish: yarn run ci:publish
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
49+
- name: Build docs
50+
if: steps.changesets.outputs.published == 'true'
51+
run: yarn build-docs --treatWarningsAsErrors
52+
53+
- name: S3 Upload
54+
if: steps.changesets.outputs.published == 'true'
55+
run: aws s3 cp docs/ s3://livekit-docs/client-sdk-react-native --recursive
56+
env:
57+
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }}
58+
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }}
59+
AWS_DEFAULT_REGION: "us-east-1"

.yarn/releases/yarn-3.6.4.cjs

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

0 commit comments

Comments
 (0)