Skip to content

Commit

Permalink
Update: Add deploy ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Dec 17, 2020
1 parent 3ee4c27 commit 93e5193
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: automatic deploy
on:
push:
tags:
- v*
jobs:
release:
name: deploy
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: setup Node
uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: ci
run: npm ci
- name: build
run: npm run build
- name: deploy
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 93e5193

Please sign in to comment.