From 860716b9aa6fbfdd249600a8d50d32ff43814d8d Mon Sep 17 00:00:00 2001 From: Zach Killebrew Date: Thu, 20 Apr 2023 12:49:59 -0500 Subject: [PATCH 1/3] Add release-package github file --- .github/workflows/release-package.yml | 33 +++++++++++++++++++++++++++ package.json | 9 +++++--- 2 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release-package.yml diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml new file mode 100644 index 00000000..eb838e36 --- /dev/null +++ b/.github/workflows/release-package.yml @@ -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}} diff --git a/package.json b/package.json index c25963b3..513d10c7 100644 --- a/package.json +++ b/package.json @@ -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", @@ -88,5 +88,8 @@ "svelvetrabbits": "^4.10.3", "uuid": "^9.0.0", "yootils": "^0.3.1" + }, + "publishConfig": { + "@1904labs:registry": "https://npm.pkg.github.com" } } From 551106f7cf7d2fabca8abe43955a05c4f4c72f5f Mon Sep 17 00:00:00 2001 From: Zach Killebrew Date: Thu, 20 Apr 2023 12:53:09 -0500 Subject: [PATCH 2/3] Modify publish config --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 513d10c7..6604d87d 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,6 @@ "yootils": "^0.3.1" }, "publishConfig": { - "@1904labs:registry": "https://npm.pkg.github.com" + "registry": "https://npm.pkg.github.com" } } From bfdc549f16371c76dcc8b2eec6b03ceee61e5e8b Mon Sep 17 00:00:00 2001 From: Zach Killebrew Date: Thu, 20 Apr 2023 12:54:32 -0500 Subject: [PATCH 3/3] Update package name --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6604d87d..f1c6164c 100644 --- a/package.json +++ b/package.json @@ -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": [