Skip to content

sync versions; testing gha. #17

sync versions; testing gha.

sync versions; testing gha. #17

name: "@iwsio/mongodb-express-session: PUSH to main"
on:
push:
branches: [ main ]
paths:
- 'package/**'
jobs:
tests:
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: iwsllc/workflows/.github/workflows/test.yaml@v2
with:
node-version-file: '.nvmrc'
install-command: npm ci -w package
test-command: npm test -w package
version:
needs: tests
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: iwsllc/workflows/.github/workflows/version.yaml@v2
with:
ref: main
node-version-file: '.nvmrc'
version-command: npm version patch -ws --include-workspace-root
publish:
needs: version
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: iwsllc/workflows/.github/workflows/publish.yaml@v2
with:
ref: main
registry-url: https://registry.npmjs.org
node-version-file: '.nvmrc'
install-command: npm ci -w package
build-command: npm run build -w package
publish-command: npm publish -w package --access public
secrets:
# This token is used for reading npm packages; use when private packages are used
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}