Skip to content

Commit

Permalink
Add npm-publish workflow and update package name
Browse files Browse the repository at this point in the history
  • Loading branch information
kingRayhan committed Dec 26, 2023
1 parent b4281d5 commit 0e214e6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 33 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/main.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install && npm run build
- run: npm publish --scope=graphland --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-video-player",
"name": "@graphland/react-video-player",
"author": "KingRayhan",
"version": "0.1.0",
"license": "MIT",
Expand Down

0 comments on commit 0e214e6

Please sign in to comment.