Skip to content

Merge branch 'main' of github.com:OnedocLabs/onedoc #24

Merge branch 'main' of github.com:OnedocLabs/onedoc

Merge branch 'main' of github.com:OnedocLabs/onedoc #24

Workflow file for this run

name: Build and Publish
on:
push:
branches:
- main
paths:
- "packages/client-js/**"
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: ./packages/client-js/package-lock.json
registry-url: "https://registry.npmjs.org"
- run: npm install
working-directory: ./packages/client-js
- run: npm run build
working-directory: ./packages/client-js
- run: npm version patch -m "Bump version to %s [skip ci]" --git-tag-version false
working-directory: ./packages/client-js
- run: npm publish --access public
working-directory: ./packages/client-js
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Bump version [skip ci]"