Skip to content

Commit

Permalink
fix: build package correctly in gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwriternr committed Jun 21, 2022
1 parent d003b31 commit 853b68f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run release-ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
- name: Publish docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/docs
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@setu/upi-deep-links",
"version": "2.1.0",
"version": "2.1.1",
"description": "NPM package to connect to Setu's UPI Deep Link APIs",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
Expand Down Expand Up @@ -38,7 +38,8 @@
"doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs",
"version": "standard-version",
"reset-hard": "git clean -dfx && git reset --hard && npm i",
"prepare-release": "run-s reset-hard test cov:check doc:html version doc:publish"
"prepare-release": "run-s reset-hard test cov:check version",
"release-ci": "run-s build doc:html"
},
"engines": {
"node": ">=10"
Expand Down

0 comments on commit 853b68f

Please sign in to comment.