feat: Better support for Offset Pagination #140 #98
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- development | |
- main | |
jobs: | |
publish: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Checkout all branches and tags | |
- name: "Use NodeJS 18" | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
# Build and test | |
- run: npm -v | |
- run: npm install --no-package-lock | |
- run: npm run build | |
- run: npm test | |
- name: "Git Config" | |
run: | | |
git config user.name "${{ github.actor }}" | |
git config user.email "${{ github.actor}}@users.noreply.github.com" | |
git config advice.addIgnoredFile false | |
- name: "Lerna Version & Publish" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm set //registry.npmjs.org/:_authToken=${{ secrets.NPMJS_TOKEN }} | |
npm whoami | |
npx lerna version --conventional-commits --yes | |
npx lerna publish from-git --yes --no-verify-access |