Skip to content

Commit

Permalink
Update new-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
appsaeed authored May 21, 2024
1 parent b5ec6e9 commit a1cbb6c
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/new-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit a1cbb6c

Please sign in to comment.