Skip to content
This repository was archived by the owner on May 1, 2022. It is now read-only.

Commit

Permalink
Create publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qinezh committed Jan 17, 2020
1 parent 5efaca0 commit 632217a
Show file tree
Hide file tree
Showing 5 changed files with 812 additions and 786 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish NPM Package

on:
release:
types: [published]

jobs:
publish-npm:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm run build
- run: npm run test
- run: npm version ${{github.event.release.tag_name}}
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
33 changes: 0 additions & 33 deletions appveyor.yml

This file was deleted.

Loading

0 comments on commit 632217a

Please sign in to comment.