Modernize packed code #95
Workflow file for this run
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: Pull request validation | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - run: npm clean-install | |
| - run: npm run prepublishOnly | |
| - run: npm pack | |
| - name: Upload tarball artifact | |
| uses: actions/upload-artifact@v4.6.2 | |
| with: | |
| name: bundle-${{ matrix.node-version }} | |
| path: ./dist | |
| - name: Upload tarball artifact | |
| uses: actions/upload-artifact@v4.6.2 | |
| with: | |
| name: tarball-${{ matrix.node-version }} | |
| path: ./*.tgz | |
| - run: npm test |