@@ -20,36 +20,55 @@ jobs:
2020 os : [ubuntu-22.04]
2121 runs-on : ${{ matrix.os }}
2222 steps :
23- - uses : actions/checkout@v4
24- - uses : actions/setup-node@v4
23+ - uses : actions/checkout@v2
24+ - uses : actions/setup-node@v1
2525 with :
2626 node-version : 18
27+ - uses : microsoft/playwright-github-action@v1
2728 - uses : actions/cache@v3
2829 with :
2930 path : ~/.npm
3031 key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3132 restore-keys : |
3233 ${{ runner.os }}-node-
3334 - name : Install dependencies
34- run : npm install
35- - name : Install Playwright Browsers
36- run : npx playwright install --with-deps
35+ run : npm ci
36+ - name : Run tests
37+ run : npm test
38+ test_win :
39+ name : " Windows"
40+ runs-on : windows-latest
41+ steps :
42+ - uses : actions/checkout@v2
43+ - uses : actions/setup-node@v1
44+ with :
45+ node-version : 18
46+ - uses : microsoft/playwright-github-action@v1
47+ - uses : actions/cache@v3
48+ with :
49+ path : ~/.npm
50+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
51+ restore-keys : |
52+ ${{ runner.os }}-node-
53+ - name : Install dependencies
54+ run : npm ci
3755 - name : Run tests
3856 run : npm test
3957 tag :
4058 name : " Publishing release"
4159 if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
4260 needs :
4361 - test_linux
62+ - test_win
4463 runs-on : ubuntu-latest
4564 steps :
4665 - name : Checkout code
47- uses : actions/checkout@v4
66+ uses : actions/checkout@v2
4867 with :
4968 fetch-depth : 0
50- - uses : actions/setup-node@v4
69+ - uses : actions/setup-node@v2
5170 with :
52- node-version : ' 18 .x'
71+ node-version : ' 16 .x'
5372 registry-url : ' https://registry.npmjs.org'
5473 - uses : actions/cache@v3
5574 with :
7897 prerelease : false
7998 - run : npm publish --access public
8099 env :
81- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
100+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments