Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
crisconru committed Jul 21, 2023
1 parent 8707890 commit d1f2a55
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
test:
name: 🧪 Test
runs-on: ubuntu-latest

steps:
- name: 👍 Checkout
uses: actions/checkout@v3
Expand All @@ -17,6 +18,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'

- name: 📥 Install Dependencies
run: npm install
Expand All @@ -27,10 +29,10 @@ jobs:
- name: 🧑‍🔬 Tests
run: npm run test

publish-npm:
publish:
name: 🚀 Publish
needs: test
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'

steps:
Expand All @@ -41,7 +43,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: 📥 Install Dependencies
run: npm install
Expand Down

0 comments on commit d1f2a55

Please sign in to comment.