Casper/.github/workflows/yarn-gulp.yml

44 lines
968 B
YAML

name: NodeJS with Gulp
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
# node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Theme Test
run: yarn test
- name: Build & zip package
run: yarn zip
release:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@master
- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/casper-aytac.zip
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GST_TOKEN }}