Skip to content

Commit fca15b4

Browse files
committed
Add github packahe publish
1 parent 77ce326 commit fca15b4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ jobs:
4242
- name: Publish to npm
4343
if: startsWith(github.ref, 'refs/tags/')
4444
run: npm publish --access public
45+
46+
- name: Publish to GitHub Packages
47+
if: startsWith(github.ref, 'refs/tags/')
48+
env:
49+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
echo "@${{ github.repository_owner }}:registry=https://npm.pkg.github.com" >> ~/.npmrc
52+
npm publish --registry=https://npm.pkg.github.com
4553
4654
- name: Upload Build Artifacts
4755
uses: actions/upload-release-asset@v1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "simple-shader-component",
2+
"name": "@svey-xyz/simple-shader-component",
33
"author": "svey",
44
"description": "Zero dependency shader component",
55
"keywords": [

0 commit comments

Comments
 (0)