docs: prepare changelog for release 5.1.1 (#435) #231
This file contains hidden or 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 insider release on each push to main branch | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| publish-npm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: 'https://registry.npmjs.org' | |
| cache: 'npm' | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Resolve version | |
| id: vars | |
| run: | | |
| SHORT_SHA=$(git rev-parse --short HEAD) | |
| echo "sha_short=${SHORT_SHA}" >> $GITHUB_OUTPUT | |
| - name: 'Version based on commit: 0.0.0-insider.${{ steps.vars.outputs.sha_short }}' | |
| run: npm version -w libraries 0.0.0-insider.${{ steps.vars.outputs.sha_short }} --force --no-git-tag-version | |
| - name: 'rebuild ui-library-angular to reflect version in libraries/ui-library-angular/dist/ui-library-angular/package.json' | |
| run: npm run build -w libraries/ui-library-angular | |
| - name: publish | |
| run: | | |
| npm publish --tag=insider --access=public libraries/ui-library/ | |
| npm publish --tag=insider --access=public libraries/ui-library-vue/ | |
| npm publish --tag=insider --access=public libraries/ui-library-angular/dist/ui-library-angular/ | |
| npm publish --tag=insider --access=public libraries/ui-library-react/ | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
| - name: 'Deploy Documentation' | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| folder: docs/.vitepress/dist | |
| # this folder needs to be kept in sync with the base property in /docs/.vitepress/config.mts | |
| target-folder: docs/v5 |