Skip to content

Commit

Permalink
Update release scripts (#2274)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Mar 11, 2024
1 parent a5a79c7 commit da3219e
Show file tree
Hide file tree
Showing 5 changed files with 732 additions and 138 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ jobs:
run: yarn copy-skia-headers

- name: Build NPM Package
run: cd package; yarn; cd ..; yarn build-npm
working-directory: package
run: yarn release

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main

- name: Get NPM Package name
id: get_npm_package_name
Expand All @@ -71,8 +78,8 @@ jobs:
- name: Create Github Release
uses: ncipollo/release-action@v1
with:
tag: "v${{steps.get_npm_package_version.outputs.npm_package_version}}-beta"
name: "Release ${{steps.get_npm_package_version.outputs.npm_package_version}} beta"
tag: "v${{steps.get_npm_package_version.outputs.npm_package_version}}"
name: "Release ${{steps.get_npm_package_version.outputs.npm_package_version}}"
artifacts: ${{ env.WORKING_DIRECTORY }}/dist/${{steps.get_npm_package_name.outputs.npm_package_name}}
artifactContentType: application/gzip
generateReleaseNotes: true
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"copy-skia-include-headers": "yarn rimraf ./package/cpp/skia/include/ && cp -a ./externals/skia/include/. ./package/cpp/skia/include",
"copy-skia-module-headers": "ts-node ./scripts/copy-skia-module-headers.ts",
"copy-skia-headers": "yarn copy-skia-include-headers && yarn copy-skia-module-headers",
"build-npm": "yarn ts-node ./scripts/build-npm-package.ts",
"get-filename-npm": "yarn ts-node ./scripts/get-npm-filename.ts",
"get-version-npm": "yarn ts-node ./scripts/get-npm-version.ts",
"build": "yarn build-skia && yarn copy-skia-headers",
Expand Down
11 changes: 8 additions & 3 deletions package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
"setup-skia-web": "./scripts/setup-canvaskit.js"
},
"title": "React Native Skia",
"version": "0.1.0-development",
"version": "1.0.0",
"description": "High-performance React Native Graphics using Skia",
"main": "index.ts",
"main": "lib/module/index.js",
"react-native": "src/index.ts",
"module": "lib/module/index.js",
"types": "lib/typescript/index.d.ts",
"files": [
"src",
"lib",
Expand Down Expand Up @@ -45,7 +48,8 @@
"lint": "eslint . --ext .ts,.tsx --max-warnings 0 --cache",
"test": "jest",
"e2e": "E2E=true yarn test -i e2e",
"build": "bob build && merge-dirs lib/typescript/src lib/commonjs && merge-dirs lib/typescript/src lib/module"
"build": "bob build && merge-dirs lib/typescript/src lib/commonjs && merge-dirs lib/typescript/src lib/module",
"release": "standard-version"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -102,6 +106,7 @@
"react-native": "0.72.6",
"react-native-builder-bob": "0.18.2",
"react-native-reanimated": "3.6.2",
"standard-version": "^9.5.0",
"ts-jest": "29.1.1",
"typescript": "5.1.6",
"ws": "8.11.0"
Expand Down
Loading

0 comments on commit da3219e

Please sign in to comment.