Skip to content

Commit

Permalink
build: setup github release action
Browse files Browse the repository at this point in the history
  • Loading branch information
MKRhere committed Feb 23, 2023
1 parent 5fbdba4 commit 8e0325a
Show file tree
Hide file tree
Showing 4 changed files with 1,228 additions and 697 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release

on:
push:
tags:
- v2.*

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run : npm ci --ignore-scripts
- run : npm run prepare
- name: Publish to npm
run : |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --ignore-scripts
env :
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 8e0325a

Please sign in to comment.