Skip to content

Commit b9ae964

Browse files
committed
feat: prepare for publish
1 parent f48ca16 commit b9ae964

File tree

4 files changed

+83
-1
lines changed

4 files changed

+83
-1
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI
2+
on: [push]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
name: Lint and Tests
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-node@v3
11+
with:
12+
node-version: 18
13+
cache: 'yarn'
14+
15+
- name: Yarn Install
16+
run: yarn install
17+
18+
- name: Building
19+
run: yarn build

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to NPM
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
environment: deploy
9+
runs-on: ubuntu-latest
10+
11+
name: Publish
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Setup node
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
cache: 'yarn'
20+
registry-url: 'https://registry.npmjs.org'
21+
22+
- name: Yarn Install
23+
run: yarn install --network-concurrency 1
24+
25+
- name: Yarn Build
26+
run: yarn build
27+
28+
- name: Publish (NPM)
29+
run: npm publish --access public
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Sourcetoad
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
{
2-
"name": "sourcetoad-tamagui-react-native",
2+
"name": "@sourcetoad/tamagui-react-native",
33
"version": "0.0.1",
4+
"description": "A design system specific to React Native for Tamagui.",
45
"types": "./types/index.d.ts",
56
"main": "dist/cjs",
67
"module": "dist/esm",
78
"module:jsx": "dist/jsx",
9+
"license": "MIT",
10+
"repository": {
11+
"type": "git",
12+
"url": "git://github.com/sourcetoad/tamagui-react-native.git"
13+
},
14+
"bugs": {
15+
"url": "https://github.com/sourcetoad/tamagui-react-native/issues"
16+
},
17+
"homepage": "https://github.com/sourcetoad/tamagui-react-native#readme",
18+
"author": "Sourcetoad, LLC",
819
"files": [
920
"types",
1021
"src",

0 commit comments

Comments
 (0)