Update Version & Retain PrePublish #9
This file contains 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: js | |
on: [push] | |
env: | |
NODE_VERSION: 20.x | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: checkout commit | |
uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: npm | |
- name: install node deps | |
run: npm ci | |
- name: run tests | |
run: npm test | |
- name: run benchmarks | |
run: npm run bench |