-
Notifications
You must be signed in to change notification settings - Fork 6
58 lines (55 loc) · 1.69 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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: 20
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: [20]
package: [
testit-adapter-codecept,
testit-adapter-cucumber,
testit-adapter-jest,
testit-adapter-mocha,
testit-adapter-playwright,
testcafe-reporter-testit
]
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 }}