diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-07-18 07:14:52 +0300 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2021-10-13 06:32:23 +0300 |
commit | 1bae9d78814599d226a916488d62ec10849fbb04 (patch) | |
tree | 2de84eb2b2551f0ca27b5d7643b1edea57c185ee | |
parent | 423c48058938528dafb239d642addf5d4f9ab3f2 (diff) |
CI: publish package on npm
-rw-r--r-- | .github/workflows/deploy.yml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4f1bc838e..e39a9c5da 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,10 +33,26 @@ jobs: - name: Build the docs run: npm run docs-build - - name: Deploy + - name: Deploy docs uses: peaceiris/actions-gh-pages@v3 with: allow_empty_commit: false personal_token: ${{ secrets.PERSONAL_TOKEN }} publish_branch: gh-pages publish_dir: ./_site/ + + publish: + needs: deploy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v2 + with: + node-version: "${{ env.NODE }}" + registry-url: "https://registry.npmjs.org" + + - name: Publish on npm + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |