Skip to content

Nested routes + doc refresh #29

Nested routes + doc refresh

Nested routes + doc refresh #29

Workflow file for this run

name: Next
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
environment:
name: NPM
url: https://www.npmjs.com/package/superouter/v/next
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'
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: |
git config --global user.email "deploybot@example.com"
git config --global user.name "Deploy Bot"
- run: npm version prerelease --preid=next
- run: npm publish --tag=next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git push && git push --tags