test(dep): update test runner to latest (19.0.2) and improve tests (#… #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish artillery-engine-posthog to npm | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- packages/artillery-engine-posthog/package.json | |
jobs: | |
build: | |
if: "contains(github.event.head_commit.message, 'ci: release v')" | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
scope: '@artilleryio' | |
- run: npm -w artillery-engine-posthog publish --tag latest | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |