Skip to content

Commit

Permalink
chore: Refactor npm-publish.yml workflow steps
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan committed Jul 12, 2024
1 parent 1e6ffc8 commit 992c5a4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ jobs:
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Publish npm
run: |
npm install
npm test
npm run build
npm publish
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Build
run: npm run build
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

0 comments on commit 992c5a4

Please sign in to comment.