Skip to content

Commit

Permalink
Add github action to publish on npmjs
Browse files Browse the repository at this point in the history
Triggers when creating a new release.
This commit also corrects package.json info.
  • Loading branch information
christophblessing committed Jan 17, 2023
1 parent 2d624d4 commit 515aaa8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish Package to npmjs
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci && npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@xikolo/media",
"name": "@open-hpi/xikolo-video-player",
"version": "1.0.0",
"description": "Xikolo Media Framework",
"description": "Xikolo Video Player",
"main": "dist/index.cjs.js",
"module": "dist/index.js",
"es2015": "dist/esm/index.js",
Expand Down

0 comments on commit 515aaa8

Please sign in to comment.