Skip to content

Commit

Permalink
refactor: add build part to ci step before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dipakparmar committed Sep 19, 2022
1 parent e9e84f9 commit d241c8e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ on:
types: [created]

jobs:
publish:
name: publish to npm registry
build-and-publish:
name: build and publish to npm registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit d241c8e

Please sign in to comment.