Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
18 changes: 11 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Deploy

on:
release:
types: [created]
workflow_dispatch:

env:
NODE_VERSION: '20.x'

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

steps:
Expand All @@ -23,8 +22,13 @@ jobs:
run: yarn install --immutable
- name: Prepare for release
run: yarn workspace react-native-render-html prepack
- name: Publish to NPM
run: npm publish
working-directory: ./packages/render-html
- 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 }}
7 changes: 4 additions & 3 deletions packages/render-html/package.json
Original file line number Diff line number Diff line change
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",
"typescript": "4.2.2"
},
"peerDependencies": {
Expand Down
Loading
Loading