Bump setup-node to 20 #296
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: build | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '31 1 1 * *' # Monthly: 01:31 UTC on day 1 of each month | |
| # GitHub Actions load is high at minute 0, so avoid that | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' # TODO: what version do we want? | |
| distribution: 'adopt' | |
| cache: maven | |
| - name: Set up Node.js 20 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20.x' # TODO: what version do we want? | |
| # cache: npm # TODO: requires package-lock.json | |
| - name: Build with Maven | |
| run: mvn install | |
| - name: Build with NPM | |
| working-directory: ./vscode | |
| run: npm install | |
| - name: Set up VSCE | |
| run: npm install -g @vscode/vsce | |
| - name: Build with VSCE | |
| working-directory: ./vscode | |
| run: vsce package | |
| - name: Upload plugin artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: gobpie-plugin | |
| path: ./vscode/gobpie-*.vsix |