Skip to content

Commit

Permalink
fix: updated ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanAgudeloRSL committed Sep 26, 2024
1 parent bc331b2 commit e23c2e1
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- main
- fix/ci-errors

jobs:
build:
Expand Down Expand Up @@ -38,17 +39,9 @@ jobs:
publish:
runs-on: ubuntu-latest
needs: build
needs: build # This ensures publish runs only after build succeeds

steps:
- name: Checkout
uses: actions/checkout@v4
run: |
echo PACKAGE_NAME=$(cat package.json | jq .name | cut -f2 -d"\"" | cut -f2 -d"@") >> $GITHUB_OUTPUT
echo PACKAGE_VERSION="refs/tags/v"$(cat package.json | jq .version | cut -f2 -d"\"") >> $GITHUB_OUTPUT
echo PACKAGE_REPOSITORY=$(cat package.json | jq .repository | cut -f2 -d"\"" | sed 's/:/\//' | sed 's/@/:\/\//') >> $GITHUB_OUTPUT
id: get_package_info

- name: Set up Node.js for npm publishing
uses: actions/setup-node@v4
with:
Expand Down

0 comments on commit e23c2e1

Please sign in to comment.