Skip to content

Commit 1f76872

Browse files
committed
chore: update ci files
1 parent 5823147 commit 1f76872

File tree

8 files changed

+451
-27
lines changed

8 files changed

+451
-27
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@3.0.5/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/nodejs.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,16 @@ jobs:
2626
- run: yarn test
2727
- run: yarn build
2828

29-
# publish-npm:
30-
# needs: build
31-
# if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
32-
# runs-on: ubuntu-latest
33-
# steps:
34-
# - uses: actions/checkout@v3
35-
# with:
36-
# fetch-depth: 0
37-
# - uses: actions/setup-node@v3
38-
# with:
39-
# node-version: lts/*
40-
# - run: yarn install --frozen-lockfile
41-
# - run: yarn release
42-
# env:
43-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
# NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
publish-npm:
30+
needs: build
31+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Create Release Pull Request or Publish
35+
id: changesets
36+
uses: changesets/action@v1
37+
with:
38+
publish: yarn run release-packages
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
NPM_TOKEN: ${{ secrets.NPM_TOKEN_NEW }}

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"lint": "eslint \"**/*.{js,ts,tsx}\"",
1010
"manypkg-fix": "manypkg fix",
1111
"prettier:write": "prettier --write '**/*.{js,ts,tsx}' '**/*.{md,mdx}'",
12-
"prettier:check": "prettier --list-different '**/*.{js,ts,tsx}' '**/*.{md,mdx}'"
12+
"prettier:check": "prettier --list-different '**/*.{js,ts,tsx}' '**/*.{md,mdx}'",
13+
"version": "changeset version",
14+
"release": "changeset publish",
15+
"release-packages": "yarn build && changeset publish"
1316
},
1417
"workspaces": [
1518
"packages/*"
@@ -44,6 +47,7 @@
4447
},
4548
"packageManager": "yarn@4.5.1",
4649
"dependencies": {
50+
"@changesets/cli": "^2.27.11",
4751
"@commitlint/cli": "^18.6.1",
4852
"@commitlint/config-conventional": "^18.6.3",
4953
"@evilmartians/lefthook": "^1.7.15",

packages/document-picker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native-documents/picker",
3-
"version": "10.6.0",
3+
"version": "9.3.1",
44
"description": "A react native interface to access documents from dropbox, google drive, iCloud...",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

packages/document-viewer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native-documents/viewer",
3-
"version": "1.3.0",
3+
"version": "0.1.0",
44
"description": "A react native interface to preview documents",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

packages/example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"mkdist": "node -e \"require('node:fs').mkdirSync('dist', { recursive: true, mode: 0o755 })\"",
1919
"wdio": "wdio ./wdio.conf.ts"
2020
},
21+
"private": true,
2122
"repository": "https://github.com/react-native-documents/sponsors-only",
2223
"author": "Vojtech Novak (hello@react-native-training.eu)",
2324
"license": "see LICENSE file",

0 commit comments

Comments
 (0)