From a1cbb6c36d62d3a533fd26bf10bc8b5b90e228de Mon Sep 17 00:00:00 2001 From: Saeed <78552486+appsaeed@users.noreply.github.com> Date: Wed, 22 May 2024 05:36:37 +0600 Subject: [PATCH] Update new-publish.yml --- .github/workflows/new-publish.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/new-publish.yml b/.github/workflows/new-publish.yml index c92de5c..558b1c3 100644 --- a/.github/workflows/new-publish.yml +++ b/.github/workflows/new-publish.yml @@ -25,25 +25,21 @@ jobs: runs-on: ubuntu-latest steps: - - name: Current dir - run : ls -a + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20.x" + registry-url: https://npm.pkg.github.com/ + scope: "@appsaeed" # Update the scope if necessary - name: Read package name id: get-package-name - run: echo "::set-output name=name::$(jq -r .name /package.json)" + run: echo "::set-output name=name::$(jq -r .name package.json)" shell: bash - - - name: Display package name run: | echo "Package name is: ${{ needs.get-package-name.outputs.name }}" - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: "20.x" - registry-url: https://npm.pkg.github.com/ - scope: "@appsaeed" # Update the scope if necessary - run: npm config set registry https://npm.pkg.github.com - run: npm run build - run: npm publish --access public --name @appsaeed/${{ needs.get-package-name.outputs.name }}