Publish JSONForms Property-View Packages #10
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 JSONForms Property-View Packages | |
| on: | |
| workflow_run: | |
| workflows: ['JSONForms Property-View Build CI'] | |
| types: [completed] | |
| branches: [master] | |
| permissions: | |
| contents: write | |
| packages: write | |
| id-token: write | |
| jobs: | |
| verify-and-publish: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # pulls all history and tags for Lerna to detect which packages changed | |
| - name: Setup Node 20 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - name: Install tools and libraries | |
| run: sudo apt-get install -y build-essential libx11-dev libxkbfile-dev libsecret-1-dev | |
| - name: Use Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install and Build | |
| shell: bash | |
| run: | | |
| yarn global add node-gyp | |
| yarn --skip-integrity-check --network-timeout 100000 | |
| env: | |
| NODE_OPTIONS: --max_old_space_size=4096 | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Lint with ESLint | |
| run: yarn lint | |
| # Publish the built packages | |
| - name: Publish packages to NPM | |
| run: | | |
| yarn publish:ci | |
| env: | |
| NPM_CONFIG_PROVENANCE: 'true' |