Skip to content

Publish Pre-releases #18

Publish Pre-releases

Publish Pre-releases #18

Workflow file for this run

name: Publish Pre-releases
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Tag env
run: echo "NPM_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/setup-node@v1
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npx playwright install
- run: npm run test
- run: npm run build
- run: npm publish --tag rc ./lib --access public
if: contains(env.NPM_TAG, 'alpha')
- run: npm publish --tag rc ./lib --access public
if: contains(env.NPM_TAG, 'beta')
- run: npm publish --tag rc ./lib --access public
if: contains(env.NPM_TAG, 'rc')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}