Skip to content

v1.2.1

v1.2.1 #9

Workflow file for this run

name: node tests
on:
release:
types: [released]
jobs:
test-and-build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
- run: npm run format:check
- run: npm run tsc:check
- run: npm run build
- run: npm run test
publish:
runs-on: ubuntu-latest
needs: test-and-build
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}