Skip to content

build(ci): use node 14 #5

build(ci): use node 14

build(ci): use node 14 #5

Workflow file for this run

# see https://help.github.com/cn/actions/language-and-framework-guides/publishing-nodejs-packages
name: Node.js Package
on:
push:
tags: ['*']
jobs:
publish:
name: 'Publish'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Npm Publish
run: npm publish dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}