Skip to content

Commit

Permalink
build: publish test
Browse files Browse the repository at this point in the history
  • Loading branch information
oneWalker committed Nov 6, 2024
1 parent fdbd883 commit b12f34f
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,32 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
mongodb-version: ['6.0']

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- run: npm ci
- run: npm test
- uses: JS-DevTools/npm-publish@v3
- name: Git checkout
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i

- name: Run Unit Tests
run: npm run ci

- name: Publish to npm
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
- uses: JS-DevTools/npm-publish@v3

- name: Publish to github package registry
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: "https://npm.pkg.github.com"

0 comments on commit b12f34f

Please sign in to comment.