From f356158edefaac32997d1e1b056e50314a60e122 Mon Sep 17 00:00:00 2001 From: "Michael Fong (Meishu)" Date: Wed, 11 Jan 2023 14:59:21 -0800 Subject: [PATCH] publish to GitHub Packages --- .github/workflows/publish-yarn.yaml | 21 +++++++++++++++++++++ package.json | 4 ++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish-yarn.yaml diff --git a/.github/workflows/publish-yarn.yaml b/.github/workflows/publish-yarn.yaml new file mode 100644 index 000000000..5111acaa4 --- /dev/null +++ b/.github/workflows/publish-yarn.yaml @@ -0,0 +1,21 @@ +name: Publish Package to Github Packages +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '16.x' + registry-url: 'https://npm.pkg.github.com' + scope: '@discord' + - run: yarn + - run: yarn publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 362ad2e9f..a7d3dc6d9 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@gorhom/bottom-sheet", + "name": "@discord/bottom-sheet", "version": "4.4.5", "description": "A performant interactive bottom sheet with fully configurable options 🚀", "main": "lib/commonjs/index", @@ -20,7 +20,7 @@ "reanimated", "sheet" ], - "repository": "https://github.com/gorhom/react-native-bottom-sheet", + "repository": "https://github.com/discord/react-native-bottom-sheet", "author": "Mo Gorhom (https://gorhom.dev)", "license": "MIT", "bugs": {