Skip to content

Commit f356158

Browse files
committed
publish to GitHub Packages
1 parent b3ddce8 commit f356158

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish Package to Github Packages
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
packages: write
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: '16.x'
16+
registry-url: 'https://npm.pkg.github.com'
17+
scope: '@discord'
18+
- run: yarn
19+
- run: yarn publish
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@gorhom/bottom-sheet",
2+
"name": "@discord/bottom-sheet",
33
"version": "4.4.5",
44
"description": "A performant interactive bottom sheet with fully configurable options 🚀",
55
"main": "lib/commonjs/index",
@@ -20,7 +20,7 @@
2020
"reanimated",
2121
"sheet"
2222
],
23-
"repository": "https://github.com/gorhom/react-native-bottom-sheet",
23+
"repository": "https://github.com/discord/react-native-bottom-sheet",
2424
"author": "Mo Gorhom (https://gorhom.dev)",
2525
"license": "MIT",
2626
"bugs": {

0 commit comments

Comments
 (0)