Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(package/web): enhance packaging script with Vite support and sem… #28

feat(package/web): enhance packaging script with Vite support and sem…

feat(package/web): enhance packaging script with Vite support and sem… #28

Workflow file for this run

name: Publish Package
on:
push:
branches: [main]
pull_request:
branches: ['*']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
Verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 14
- name: Setup and install dependencies
run: |
npm ci
- name: Test
run: npm run test
- name: Build
run: npm run build
Publish:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
needs: [Verify]
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 14
- name: Package 📦
run: |
npm ci
npm run build
- name: Publish 🚀
run: npm run release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}