Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release-package github file #4

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "svelvet",
"name": "1904svelvet",
"version": "6.0.9",
"description": "A lightweight Svelte component library for building interactive node-based flow diagrams",
"keywords": [
Expand All @@ -9,11 +9,11 @@
],
"authors": "Anu, Aaron, Alexander, Andrew, Ali, Damian, Justin, Von, Walter, Jeffrey, David, Samee, Christopher, Johnny, Abhi, Ian, Mauricio, Ryan, Taylor, Emma, Dillon, Tony, Timmy, Ernesto, Horacio, Rachel, Michael",
"license": "MIT",
"bugs": "https://github.com/open-source-labs/Svelvet/issues",
"homepage": "https://github.com/open-source-labs/Svelvet",
"bugs": "https://github.com/1904labs/Svelvet/issues",
"homepage": "https://github.com/1904labs/Svelvet",
"repository": {
"type": "git",
"url": "https://github.com/open-source-labs/Svelvet"
"url": "https://github.com/1904labs/Svelvet"
},
"scripts": {
"dev": "svelte-kit dev",
Expand Down Expand Up @@ -88,5 +88,8 @@
"svelvetrabbits": "^4.10.3",
"uuid": "^9.0.0",
"yootils": "^0.3.1"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}