Merge pull request #5554 from Tyriar/2117 #349
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: Release | |
| on: | |
| push: | |
| # If a commit reaches master, assume it has passed CI via PR and publish | |
| # without running tests to save time to publish | |
| branches: [ "master" ] | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js 22.x | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22.x | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run setup | |
| - name: Package headless | |
| run: | | |
| npm run package-headless | |
| node ./bin/package_headless.js | |
| - name: Publish to npm | |
| env: | |
| NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: node ./bin/publish.js |