Skip to content

Workflow file for this run

name: Mercury Auth - NestJS package for authentication
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run test
- run: npm run test:e2e
publish-npm:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
env:
NEW_PACKAGE_VERSION: ${{ github.event.release.tag_name }}
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org
scope: '@mercury-labs'
- run: npm ci
- run: npm run build
- run: npm run increase-version
- run: npm publish