Skip to content

Create npm-publish.yml #229

Create npm-publish.yml

Create npm-publish.yml #229

Workflow file for this run

name: NodeCI
on:
push:
branches:
- main
tags:
- "v*.*.*"
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install and build swagger-axios-codegen
run: |
npm install
npm run build
- name: build api,and test
run: |
cd example
npm i
npm run build:api
env:
CI: true