Skip to content

Commit

Permalink
Corrected workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SunDevil311 committed Jan 22, 2025
1 parent 1259f3f commit 82e05fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: Node.js Package
on:
release:
types: [created]
workflow_dispatch:

jobs:
build:
Expand All @@ -20,6 +21,7 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
- run: npm run build # Ensure this script builds to the dist directory

publish-gpr:
needs: build
Expand All @@ -38,7 +40,7 @@ jobs:
#registry-url: https://npm.pkg.github.com/
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
- run: npm run start
- working-directory: ./dist # Set working directory to dist
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 82e05fe

Please sign in to comment.