Update to version 4.2.0 (#2109) #19
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 | |
| permissions: | |
| id-token: write | |
| # Required to mark the action as cancelled | |
| actions: write | |
| on: | |
| push: | |
| # Only trigger on changes to package.json files in the main and maintenance branches | |
| branches: | |
| - 'main' | |
| - 'maintenance/**' | |
| paths: | |
| - '**/package.json' | |
| jobs: | |
| publish: | |
| name: Langium Publish | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Build | |
| shell: bash | |
| run: | | |
| npm ci | |
| npm run build:clean | |
| npm run langium:generate:production --workspace=langium | |
| npm run build | |
| - name: Test | |
| if: success() || failure() | |
| shell: bash | |
| run: | | |
| npm run test | |
| - name: Publish | |
| shell: bash | |
| env: | |
| OVSX_TOKEN: ${{ secrets.OVSX_TOKEN }} | |
| VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} | |
| run: | | |
| npm run publish:updated |