diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml new file mode 100644 index 000000000..eb838e36f --- /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 c25963b31..f1c6164ca 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": [ @@ -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": { + "registry": "https://npm.pkg.github.com" } }