Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PranavBarthwal committed Oct 6, 2024
1 parent 84ba636 commit 38e205a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # Use your preferred Node.js version
node-version: '16'
registry-url: 'https://registry.npmjs.org/'

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test # Ensure all tests pass before publishing

- name: Bump version
run: |
npm version patch # Automatically bump the patch version
Expand All @@ -36,4 +33,4 @@ jobs:
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Uses the npm token secret
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 38e205a

Please sign in to comment.