diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..ccd6c5f --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -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 + + \ No newline at end of file