From cd4491f45838e55510abc9bafca6d426fa5b4638 Mon Sep 17 00:00:00 2001 From: Yohay Nahmany Date: Tue, 17 Mar 2026 13:25:06 +0100 Subject: [PATCH 1/2] chore: adding publish flow --- .github/workflows/publish.yml | 49 +++++++++++++++++++++++++++++++++++ LICENSE | 21 +++------------ packages/nx/LICENSE.md | 8 ++++++ packages/nx/package.json | 3 ++- 4 files changed, 63 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/publish.yml create mode 100644 packages/nx/LICENSE.md diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..da96063 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,49 @@ +name: Publish NPM Package + +on: + workflow_dispatch: + inputs: + channel: + required: true + type: choice + description: NPM tag to publish the package to + options: + - oldversion + - alpha + - beta + - latest + + package: + required: true + type: choice + description: Package to publish + options: + - '@currents/nx' + +permissions: + id-token: write # Required for OIDC + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + defaults: + run: + working-directory: . + + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - uses: actions/setup-node@v4 + with: + node-version: '24.x' + registry-url: 'https://registry.npmjs.org' + + - run: npm ci + - name: Publish to NPM + run: | + git config user.name "Currents NPM Bot" + git config user.email "npm@currents.dev" + npm run publish:npm --workspace ${{ github.event.inputs.package }} -- --tag ${{ github.event.inputs.channel }} diff --git a/LICENSE b/LICENSE index 5f89ed4..ad9594e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,8 @@ -MIT License +Copyright 2024 Currents Software Inc -Copyright (c) 2021 Currents Software Inc +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/nx/LICENSE.md b/packages/nx/LICENSE.md new file mode 100644 index 0000000..ad9594e --- /dev/null +++ b/packages/nx/LICENSE.md @@ -0,0 +1,8 @@ +Copyright 2024 Currents Software Inc + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + diff --git a/packages/nx/package.json b/packages/nx/package.json index 2d98439..bb00d5b 100644 --- a/packages/nx/package.json +++ b/packages/nx/package.json @@ -25,7 +25,8 @@ "compile": "tsc -d", "dev": "tsc -d --watch", "release": "release-it", - "clean": "rimraf dist" + "clean": "rimraf dist", + "publish:npm": "npm run rm && npm run build && ./publish.js" }, "main": "./index.js", "typings": "./index.d.ts", From 90ea69aa0f04633bc3e3e4c9e424ddd2c3628d81 Mon Sep 17 00:00:00 2001 From: Yohay Nahmany Date: Tue, 17 Mar 2026 13:37:33 +0100 Subject: [PATCH 2/2] remove license --- packages/nx/LICENSE.md | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 packages/nx/LICENSE.md diff --git a/packages/nx/LICENSE.md b/packages/nx/LICENSE.md deleted file mode 100644 index ad9594e..0000000 --- a/packages/nx/LICENSE.md +++ /dev/null @@ -1,8 +0,0 @@ -Copyright 2024 Currents Software Inc - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -