Skip to content

Serenity js/3.10.1 #122

Serenity js/3.10.1

Serenity js/3.10.1 #122

name: Build and release
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
types: [ opened, synchronize ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- name: Install Node Modules
uses: bahmutov/npm-install@v1
env:
CHROMEDRIVER_FILEPATH: "/usr/bin/chromedriver"
- run: npm run test:ci
env:
CI: true
release:
name: Release
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Install Node Modules
uses: bahmutov/npm-install@v1
env:
CHROMEDRIVER_FILEPATH: "/usr/bin/chromedriver"
- name: Release
run: npx semantic-release --debug
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}