Skip to content

Commit

Permalink
Merge pull request #8 from xibosignage/feature/package-public-r2
Browse files Browse the repository at this point in the history
Upload to npm registry instead of GitHub packages
  • Loading branch information
dasgarner authored Oct 10, 2024
2 parents 58e576b + 4020425 commit 8e7f2b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@xibosignage'
- run: npm ci
- run: npm publish
- run: npm run build
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Xibo Layout Renderer
# Xibo Layout Renderer
This is a npm module for rendering Xibo layouts to a browser window.
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xibosignage/xibo-layout-renderer",
"version": "1.0.0",
"version": "1.0.1",
"description": "Xibo layout renderer is a shared library that performs rendering of given layout from sources (e.g. CMS Preview, Linux Player, etc.)",
"main": "dist/xibo-layout-renderer.cjs.js",
"module": "dist/xibo-layout-renderer.esm.js",
Expand All @@ -10,10 +10,7 @@
"build": "rimraf dist && rollup --config rollup.config.prod.ts --configPlugin @rollup/plugin-typescript",
"dev": "rimraf dist && rollup --config rollup.config.dev.ts -w --configPlugin @rollup/plugin-typescript"
},
"repository": {
"type": "git",
"url": "https://github.com/xibosignage/xibo-layout-renderer.git"
},
"repository": "git+https://github.com/xibosignage/xibo-layout-renderer.git",
"files": [
"dist/"
],
Expand Down

0 comments on commit 8e7f2b3

Please sign in to comment.