Skip to content

10.7.0

10.7.0 #164

Workflow file for this run

name: Publish
on:
release:
types:
- released
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20.x ]
mongodb-version: [ '7.0' ]
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.11.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Install dependencies
run: npm install
- name: Optimize and check
run: npm run prepublishOnly
- name: Build
run: npm run build
- uses: JS-DevTools/npm-publish@v3
with:
access: public
token: ${{ secrets.NPM_TOKEN }}