diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index c28e56d..2bd2e4f 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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 diff --git a/package-lock.json b/package-lock.json index 9abcce5..792c7d2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@setu/upi-deep-links", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@setu/upi-deep-links", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT", "dependencies": { "axios": "^0.27.2", diff --git a/package.json b/package.json index 947bc4e..abda1b4 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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"