Skip to content

Commit

Permalink
feat: add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
xryuseix committed Jun 21, 2023
1 parent 7e05fb2 commit 520c117
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and Deploy

on:
push:
branches:
- main

jobs:
gas:
permissions:
contents: write
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: cache node_modules
id: node_modules_cache_id
uses: actions/cache@v3
with:
path: |
node_modules
key: node-v${{ matrix.node-version }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Lint
run: yarn lint

- name: Build
run: yarn build

- name: Release
uses: softprops/action-gh-release@v1
with:
name: Latest Releases
tag_name: v1.0.0
files: |
dist/index.js

0 comments on commit 520c117

Please sign in to comment.