Skip to content

docs: update examples for "initializeTransactionalContext" and "Stora… #47

docs: update examples for "initializeTransactionalContext" and "Stora…

docs: update examples for "initializeTransactionalContext" and "Stora… #47

Workflow file for this run

name: main
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['12.x', '18.x', '20.x']
storageDriver: ['ASYNC_LOCAL_STORAGE', 'CLS_HOOKED']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
registry-url: 'https://registry.npmjs.org'
- name: Install
run: npm install
- name: Test
run: npm test
env:
TEST_STORAGE_DRIVER: ${{ matrix.storageDriver }}
publish:
if: startsWith(github.event.ref, 'refs/tags/v')
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Install
run: npm install
- name: Build
run: npm run build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}