v0.0.7 #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Github Action | |
on: push | |
jobs: | |
action: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
cache: 'yarn' | |
- name: Install | |
run: yarn install | |
- name: Lint | |
run: yarn run lint | |
- name: Build | |
run: yarn run build | |
- name: Archive | |
uses: thedoctor0/zip-release@main | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
type: tar | |
filename: dist.tar.gz | |
path: dist/ | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
fail_on_unmatched_files: true | |
files: dist.tar.gz |