Skip to content

Commit

Permalink
build files before publish (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterYangIO authored Mar 5, 2021
1 parent 40492cf commit e5a6a34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# This workflow will run tests using node and then publish a package to the npm registry when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package
Expand All @@ -16,7 +16,6 @@ jobs:
with:
node-version: 14
- run: npm ci
- run: npm run build
- run: npm run test-ci

publish-npm:
Expand All @@ -29,6 +28,7 @@ jobs:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "office-contact-card",
"version": "2.0.0",
"version": "2.0.1",
"description": "Contact Card in MS Office style",
"repository": {
"type": "git",
Expand Down

0 comments on commit e5a6a34

Please sign in to comment.