Skip to content

Commit 24693ad

Browse files
authored
chore: add changesets (#50)
1 parent 1256bf4 commit 24693ad

File tree

8 files changed

+875
-36
lines changed

8 files changed

+875
-36
lines changed

β€Ž.changeset/README.md

+8
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/afraid-jeans-hunt.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"expo-speech-recognition": patch
3+
---
4+
5+
Initial release!

β€Ž.changeset/config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

β€Ž.github/workflows/lint.yml

+16-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
name: Check ESLint
1+
name: Lint
22

33
on:
4-
pull_request:
5-
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
69
jobs:
7-
eslint:
8-
name: ESLint
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: πŸ— Setup repo
12-
uses: actions/checkout@v4
10+
eslint:
11+
name: ESLint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: πŸ— Setup repo
15+
uses: actions/checkout@v4
1316

14-
- name: πŸ“¦ Install dependencies
15-
run: npm install
17+
- name: πŸ“¦ Install dependencies
18+
run: npm install
1619

17-
- name: πŸ€“ Run ESLint
18-
run: npm run lint
20+
- name: πŸ€“ Run ESLint
21+
run: npm run lint

β€Ž.github/workflows/publish.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish
2+
on:
3+
workflow_run:
4+
workflows: ["Run Typescript", "Lint"]
5+
branches: [main]
6+
types: [completed]
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
14+
jobs:
15+
publish:
16+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 20.x
23+
cache: "npm"
24+
25+
- run: npm ci
26+
- name: Create Release Pull Request or Publish
27+
id: changesets
28+
uses: changesets/action@v1
29+
with:
30+
publish: npm run release
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

β€Ž.github/workflows/typescript.yml

+14-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
name: Run Typescript
22

33
on:
4-
pull_request:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
58

69
jobs:
7-
typescript-check:
8-
name: Typescript check
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: πŸ— Setup repo
12-
uses: actions/checkout@v4
10+
typescript-check:
11+
name: Typescript check
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: πŸ— Setup repo
15+
uses: actions/checkout@v4
1316

14-
- name: πŸ“¦ Install dependencies
15-
run: npm install
17+
- name: πŸ“¦ Install dependencies
18+
run: npm install
1619

17-
- name: πŸ” Run Typescript check
18-
run: npm run ts:check
20+
- name: πŸ” Run Typescript check
21+
run: npm run ts:check

0 commit comments

Comments
Β (0)