Skip to content

Commit

Permalink
chore: update ci files
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak committed Jan 21, 2025
1 parent 5823147 commit 1f76872
Show file tree
Hide file tree
Showing 8 changed files with 451 additions and 27 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.5/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
29 changes: 13 additions & 16 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@ jobs:
- run: yarn test
- run: yarn build

# publish-npm:
# needs: build
# if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - uses: actions/setup-node@v3
# with:
# node-version: lts/*
# - run: yarn install --frozen-lockfile
# - run: yarn release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-npm:
needs: build
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: yarn run release-packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_NEW }}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"manypkg-fix": "manypkg fix",
"prettier:write": "prettier --write '**/*.{js,ts,tsx}' '**/*.{md,mdx}'",
"prettier:check": "prettier --list-different '**/*.{js,ts,tsx}' '**/*.{md,mdx}'"
"prettier:check": "prettier --list-different '**/*.{js,ts,tsx}' '**/*.{md,mdx}'",
"version": "changeset version",
"release": "changeset publish",
"release-packages": "yarn build && changeset publish"
},
"workspaces": [
"packages/*"
Expand Down Expand Up @@ -44,6 +47,7 @@
},
"packageManager": "yarn@4.5.1",
"dependencies": {
"@changesets/cli": "^2.27.11",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.3",
"@evilmartians/lefthook": "^1.7.15",
Expand Down
2 changes: 1 addition & 1 deletion packages/document-picker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-documents/picker",
"version": "10.6.0",
"version": "9.3.1",
"description": "A react native interface to access documents from dropbox, google drive, iCloud...",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
2 changes: 1 addition & 1 deletion packages/document-viewer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-documents/viewer",
"version": "1.3.0",
"version": "0.1.0",
"description": "A react native interface to preview documents",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
1 change: 1 addition & 0 deletions packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"mkdist": "node -e \"require('node:fs').mkdirSync('dist', { recursive: true, mode: 0o755 })\"",
"wdio": "wdio ./wdio.conf.ts"
},
"private": true,
"repository": "https://github.com/react-native-documents/sponsors-only",
"author": "Vojtech Novak (hello@react-native-training.eu)",
"license": "see LICENSE file",
Expand Down
Loading

0 comments on commit 1f76872

Please # to comment.