Skip to content

chore: remove husky #246

chore: remove husky

chore: remove husky #246

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the dev branch
on:
push:
branches: [dev, master, 'feat/*']
pull_request:
branches: [dev, master, 'feat/*']
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 16
- name: build
run: yarn && yarn build
- name: Check out my other private repo
uses: actions/checkout@master
with:
repository: zhangyuang/ssr
path: ssr_v7
ref: dev
- name: Check out my other private repo
uses: actions/checkout@master
with:
repository: zhangyuang/ssr
path: ssr_v6
ref: v6
- name: Check out my other private repo
uses: actions/checkout@master
with:
repository: zhangyuang/micro-app-ssr
path: micro-app-ssr
ref: master
- name: Publish
run: |
cp -R ./ssr_v6/example/ ./ssr_v6_example
cp -R ./ssr_v7/example/ ./ssr_v7_example
cp -R ./micro-app-ssr ./example
rm -rf ssr_v7
rm -rf ssr_v6
rm -rf ./micro-app-ssr
ls
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish
else
echo "Not a release, skipping publish"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}