Skip to content

fix: Allow prefixUrl to work (#370) #295

fix: Allow prefixUrl to work (#370)

fix: Allow prefixUrl to work (#370) #295

Workflow file for this run

name: Release workflow
on:
push:
branches:
- 'main'
- 'next'
- '4.x'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install
- run: yarn run test
env:
CI: true
release:
runs-on: ubuntu-latest
needs:
- test
environment: npm
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: yarn
- run: yarn install
- run: yarn build
- run: yarn release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}