Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update workflows and add deploy workflow #672

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Cache .dts
id: cache-dts
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: .dts
key: ${{ runner.os }}-dts
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy

on:
workflow_dispatch:

env:
NODE_VERSION: '20.x'

jobs:
Deploy:
name: Deploy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install --immutable
- name: Prepare for release
run: yarn workspace react-native-render-html prepack
- name: Set Git Credentials
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Release It 🚀
run: yarn workspace react-native-render-html ci:release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 6 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable
Expand All @@ -29,7 +29,9 @@ jobs:
name: Build Tooling Libraries
- run: yarn build:docs
name: Build documentation
- run: yarn website build
name: Build website
- name: Build website
env:
NODE_OPTIONS: '--openssl-legacy-provider'
run: yarn website build
- run: yarn discovery test:ts
name: Discovery TS
2 changes: 1 addition & 1 deletion .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
Expand Down
9 changes: 5 additions & 4 deletions packages/render-html/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-render-html",
"version": "6.3.4",
"version": "6.4.0",
DorianMazur marked this conversation as resolved.
Show resolved Hide resolved
"author": "Meliorence <[email protected]> (github.com/meliorence)",
"license": "BSD-2-Clause",
"description": "The hackable, full-featured Open Source HTML rendering solution for React Native.",
Expand Down Expand Up @@ -36,7 +36,8 @@
"build": "bob build",
"build:defs": "api-extractor run --local --verbose",
"prepack": "yarn run prepack:readme && yarn run build",
"prepack:readme": "./scripts/prepack.sh"
"prepack:readme": "./scripts/prepack.sh",
"ci:release": "release-it --ci --no-git.requireUpstream"
},
"devDependencies": {
"@babel/cli": "^7.13.16",
Expand All @@ -46,7 +47,7 @@
"@babel/preset-typescript": "^7.13.0",
"@babel/runtime": "^7.13.17",
"@microsoft/api-extractor": "^7.14.0",
"@release-it/conventional-changelog": "^2.0.1",
"@release-it/conventional-changelog": "^8.0.2",
"@testing-library/jest-native": "^4.0.2",
"@testing-library/react-hooks": "^7.0.0",
"@testing-library/react-native": "^7.2.0",
Expand All @@ -65,7 +66,7 @@
"react-native-builder-bob": "^0.18.1",
"react-performance-testing": "^1.2.3",
"react-test-renderer": "^17.0.2",
"release-it": "14.11.0-next.1",
"release-it": "^17.6.0",
DorianMazur marked this conversation as resolved.
Show resolved Hide resolved
"typescript": "4.2.2"
},
"peerDependencies": {
Expand Down
Loading
Loading