Skip to content

2.1.6

2.1.6 #20

Workflow file for this run

name: Publish Package
on:
release:
types: [published]
jobs:
publish_commons:
runs-on: ubuntu-latest
steps:
- name: Get repository code [testit-js-commons]
uses: actions/checkout@v3
- name: Install Node JS
uses: actions/setup-node@v3
with:
node-version: 21
registry-url: 'https://registry.npmjs.org'
- name: Install dependecies
working-directory: testit-js-commons
run: npm install
- name: Build application testit-js-commons
working-directory: testit-js-commons
run: npm run build
- run: npm publish
working-directory: testit-js-commons
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish_adapters:
needs: publish_commons
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [21]
package: [
testit-adapter-codecept,
testit-adapter-cucumber,
testit-adapter-jest,
testit-adapter-mocha,
testit-adapter-playwright
]
steps:
- name: Get repository code [${{ matrix.package }}]
uses: actions/checkout@v3
- name: Install Node JS
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Build application ${{ matrix.package }}
working-directory: ${{ matrix.package }}
run: npm run build
- run: npm publish
working-directory: ${{ matrix.package }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}