Skip to content

Bump path-to-regexp from 1.8.0 to 1.9.0 #20

Bump path-to-regexp from 1.8.0 to 1.9.0

Bump path-to-regexp from 1.8.0 to 1.9.0 #20

Workflow file for this run

on:
push:
branches:
- main
- master
- 'release/**'
pull_request:
branches:
- main
- master
- 'release/**'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 14.18.2
registry-url: 'https://registry.npmjs.org'
- name: Install packages
run: npm install
- name: Run build
run: node make.js build
- name: Test
run: yarn lint && yarn test
- name: Deploy to NPM
if: github.ref != 'refs/heads/main' && github.event_name == 'push'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: After build
if: github.ref != 'refs/heads/main' && github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node make.js after_build
- name: Create Github Release and Tag
if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push'
run: |
git tag ${GITHUB_REF/refs\/heads\/release\//}.$GITHUB_RUN_NUMBER
git push origin ${GITHUB_REF/refs\/heads\/release\//}.$GITHUB_RUN_NUMBER