Skip to content

publish when merge to main #26

publish when merge to main

publish when merge to main #26

Workflow file for this run

name: "Vue 3 Component Package"
on: [ pull_request ]
jobs:
check-js-files:
name: "Analyze *.js and *.vue files"
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.11.1
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install pnpm
run: |
pnpm install
- name: Analyze latest files
run: pnpm run lint
- name: Cancelling jobs
if: failure()
uses: andymckay/cancel-action@0.3