From 21cd0b53dac753161a23e3b9d275738b775ed3ff Mon Sep 17 00:00:00 2001 From: Package-v Bot Date: Sat, 19 Oct 2024 15:57:40 +0000 Subject: [PATCH] feat: added github/workflow/package-v.yml file to publish the package programmatically --- .github/workflows/package-v.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/package-v.yml diff --git a/.github/workflows/package-v.yml b/.github/workflows/package-v.yml new file mode 100644 index 0000000000..0993312254 --- /dev/null +++ b/.github/workflows/package-v.yml @@ -0,0 +1,24 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages + +name: Node.js Package + +on: workflow_dispatch + +jobs: + + publish-gpr: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 20 + registry-url: https://npm.pkg.github.com/ + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} +